If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Other > Yet another Run-time error 3075

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-25-11, 19:25
nicholst1 nicholst1 is offline
Registered User
 
Join Date: Apr 2011
Posts: 1
Yet another Run-time error 3075

Just to clarify, I am no expert programmer by any means. I'm a senior college student trying to help a non-profit with some reporting...

I am using Access 2007, and VBA to run a report to Excel. The SQL statement I used looks like this:

aSQL = "SELECT tblBasicDemographics.LastName, tblBasicDemographics.FirstName, tblClientAddresses.County, tbl_ChildAttendance.ClientNumber, tbl_ChildAttendance.AttDate, tbl_ChildAttendance.ChildProgram, tbl_ChildAttendance.Time1In, tbl_ChildAttendance.Time1Out, tbl_ChildAttendance.Time2In, tbl_ChildAttendance.Time2Out, tbl_ChildAttendance.Status FROM (tbl_ChildAttendance INNER JOIN tblBasicDemographics ON tbl_ChildAttendance.ClientNumber=tblBasi… INNER JOIN tblClientAddresses ON tblBasicDemographics.ClientNumber=tblCli… WHERE (tbl_ChildAttendance.AttDate BETWEEN #FiscalStart# AND #FiscalEnd#)"


The FiscalStart and FiscalEnd are both text boxes in the form with a Short Date format (also I used an autopicker to select the date). For some reason everytime I try to run the report I get the error:

"Run-time error '3075':

Syntax error in date in query expression '(tbl_ChildAttendance.AttDate BETWEEN #FiscalStart# AND #FiscalEnd#'.

If you need to see all of my code (quite a bit) let me know.

Any help would be greatly appreciated!
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On