hardhitter06
Registered User.
- Local time
- Today, 17:09
- Joined
- Dec 21, 2006
- Messages
- 600
Hi Guys,
Access 2003.
I'm trying to set up a search on my dashboard that will locate all records within a date range. This date range will check all record's "Contract Start" date.
I would like the information to show in a datasheet so I have a qryMain and I have a frmDateRangeSearch (datasheet view) and was wondering which should I use for this to work best.
Here is the code I have behind my command button, but it isn't working:
I ALSO tried running it with "QryMain" but I keep getting syntaax errors and am not sure what is wrong. I will attach my database and I have three Test records with Start Dates 7/1/09; 7/3/09; 7/5/09.
Thank you!!
Access 2003.
I'm trying to set up a search on my dashboard that will locate all records within a date range. This date range will check all record's "Contract Start" date.
I would like the information to show in a datasheet so I have a qryMain and I have a frmDateRangeSearch (datasheet view) and was wondering which should I use for this to work best.
Here is the code I have behind my command button, but it isn't working:
Code:
stLinkCriteria = "[Contract_Start] >= #" & Forms!frmDash.Text2 & "# And [Contract_Start] <= #" & Forms!frmDash!Text4 & "#"
DoCmd.OpenForm "frmDateRangeSearch", acNormal, , stLinkCriteria
I ALSO tried running it with "QryMain" but I keep getting syntaax errors and am not sure what is wrong. I will attach my database and I have three Test records with Start Dates 7/1/09; 7/3/09; 7/5/09.
Thank you!!