Hello,
I am trying to replicate a program I had used from memory. As I recall I had this issue when I first wrote it. The problem is that I am accessing remote data that has a datetime field and I want only the records for today. So, I used CREATED>date(). But, I get no records. Yes, there is data in the remote view for today. I run the same query (different SQL) in Access and get the proper data returned.
Here is the test code:
CLOSE DATABASES all
CLOSE TABLES all
OPEN DATABASE data2
CREATE SQL VIEW MyView REMOTE CONNECTION Connect1 as ;
SELECT RemTable.TRACKING_NUM, ;
RemTable.STATUS, ;
RemTable.CREATED, ;
RemTable.MODIFIED ;
FROM Schema.RemTable RemTable ;
where RemTable.CREATED > DATE()
=MESSAGEBOX("Done")
DELETE VIEW MyView
What did I forget?
Thank you in advance.
I am trying to replicate a program I had used from memory. As I recall I had this issue when I first wrote it. The problem is that I am accessing remote data that has a datetime field and I want only the records for today. So, I used CREATED>date(). But, I get no records. Yes, there is data in the remote view for today. I run the same query (different SQL) in Access and get the proper data returned.
Here is the test code:
CLOSE DATABASES all
CLOSE TABLES all
OPEN DATABASE data2
CREATE SQL VIEW MyView REMOTE CONNECTION Connect1 as ;
SELECT RemTable.TRACKING_NUM, ;
RemTable.STATUS, ;
RemTable.CREATED, ;
RemTable.MODIFIED ;
FROM Schema.RemTable RemTable ;
where RemTable.CREATED > DATE()
=MESSAGEBOX("Done")
DELETE VIEW MyView
What did I forget?
Thank you in advance.