![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have an application that imports data from a Timberline database via Timberline's own ODBC driver. The application is written in C# and uses the MS ODBC.Net provider to connect to a Timberline database via a DSN set up with the Timberline ODBC driver. I need to understand how to pass a date as a parameter in a query to get the results that I am looking for (ex. SELECT Job FROM MASTER_JCM_JOB_1 WHERE Date_Stamp > #1/1/2000#). I have many other queries that work fine, but they use text fields as parameters. Depending on how I use the date I either get a syntax error or an invalid date error. I have tried wrapping the date(s) in brackets, braces, parenthesis, single quotes, and pound signs. I have also had successful queries created in Access 2003 or MS Query 8.0 that do not work when pasted into the code and run within the application. Any help would be greatly appreciated. |
![]() |
| Thread Tools | |
| Display Modes | |
| |