Hello,
I have a table in a data base named Table (access data base), with the following fields:
Name - string
TheaterNr - number
Day - date/time
and i`m trying to store in an OleDbCommand X.Command an sql statement:
X.Command = "SELECT Name, TheaterNr, Day FROM Table WHERE Name = <name of a variable that stores a string> AND TheaterNr = <name of a variable that stores a number> AND Day = <name of a variable that stores a date/time>"
I`m lost among all the ' " and i don`t know how to use the CAST function as i think it`s necessary for the parsing of the number and date/time variables.
I hope you can help me :)
I have a table in a data base named Table (access data base), with the following fields:
Name - string
TheaterNr - number
Day - date/time
and i`m trying to store in an OleDbCommand X.Command an sql statement:
X.Command = "SELECT Name, TheaterNr, Day FROM Table WHERE Name = <name of a variable that stores a string> AND TheaterNr = <name of a variable that stores a number> AND Day = <name of a variable that stores a date/time>"
I`m lost among all the ' " and i don`t know how to use the CAST function as i think it`s necessary for the parsing of the number and date/time variables.
I hope you can help me :)
Comment