G
Guest
I have two questions
1) I'm trying to execute the following SQL command
sql = "INSERT INTO Session (ClassID, SessionNum, Date, FID, FSNum, StartTime, EndTime, Topic) Values (ddlClass, txtSessionNum, txtDate, ddlFaculty, txtFSNum, txtStartTime, txtEndTime, txtTopic);
I'm getting a syntax error, which I think I'm safe to assume is because I'm not inserting the date correctly. I can't find anything in the help file that shows how to insert the date and times properly. Please provide the formatting
2) Does it matter how the date is stored in the tables if I am going to run a report from the dates in a different format then they are inserted into the tables? Like inserting the date as MM/DD/YYYY would work just fine for inputing, but in a report i will want it to say DAYOFWEEK, MM/DD/YYYY. Will I run into a problem with this
Thanks for any help
Kyle
1) I'm trying to execute the following SQL command
sql = "INSERT INTO Session (ClassID, SessionNum, Date, FID, FSNum, StartTime, EndTime, Topic) Values (ddlClass, txtSessionNum, txtDate, ddlFaculty, txtFSNum, txtStartTime, txtEndTime, txtTopic);
I'm getting a syntax error, which I think I'm safe to assume is because I'm not inserting the date correctly. I can't find anything in the help file that shows how to insert the date and times properly. Please provide the formatting
2) Does it matter how the date is stored in the tables if I am going to run a report from the dates in a different format then they are inserted into the tables? Like inserting the date as MM/DD/YYYY would work just fine for inputing, but in a report i will want it to say DAYOFWEEK, MM/DD/YYYY. Will I run into a problem with this
Thanks for any help
Kyle