I am having problems with an SQL query from an .asp page to an access database, can someone please help!!!.
The fields in the database are as follows:
ID
SupportTeamName
StartDate
EndDate
FirstPersonInitials
Basically I want to select the row where the Date falls between StartDate and EndDate, the SQL I have is
StrSQL="SELECT FirstPersonInitials, SecondPersonInitials FROM CalloutDetails " _
& "WHERE SupportTeamName Like '%" & Replace(SupportRef, "'", "''"
& "%' " _
& "and WHERE StartDate >= #" & CurrentDte2 & "# AND EndDate <=#" & CurrentDte2 & ""
SupportRef is a variable
CurrentDte2 is todays date converted to mm/dd/ccyy format.
The fields in the database are as follows:
ID
SupportTeamName
StartDate
EndDate
FirstPersonInitials
Basically I want to select the row where the Date falls between StartDate and EndDate, the SQL I have is
StrSQL="SELECT FirstPersonInitials, SecondPersonInitials FROM CalloutDetails " _
& "WHERE SupportTeamName Like '%" & Replace(SupportRef, "'", "''"
& "and WHERE StartDate >= #" & CurrentDte2 & "# AND EndDate <=#" & CurrentDte2 & ""
SupportRef is a variable
CurrentDte2 is todays date converted to mm/dd/ccyy format.