OrWolf
MIS
- Mar 19, 2001
- 291
Hi all,
I have a very simple for with two fields; WeekDate (data type of date/time) and OrderCount (with a data type of number). When I attempt to open the form to the current week's date I get error 13 type mismatch. The field in my table has a format of short date and the field on the form has a format of short date. The open code is below and it's erroring on the GoToRecord statement. I removed all of my custom code to find the current dates end of week date and just hard coded the value to help debug, but the error continues.
strLinkCriteria = "WeekDate = #11/12/2005#"
strDocName = "MyForm"
DoCmd.GoToRecord acDataForm, strDocName, strLinkCriteria
Any ideas?
I have a very simple for with two fields; WeekDate (data type of date/time) and OrderCount (with a data type of number). When I attempt to open the form to the current week's date I get error 13 type mismatch. The field in my table has a format of short date and the field on the form has a format of short date. The open code is below and it's erroring on the GoToRecord statement. I removed all of my custom code to find the current dates end of week date and just hard coded the value to help debug, but the error continues.
strLinkCriteria = "WeekDate = #11/12/2005#"
strDocName = "MyForm"
DoCmd.GoToRecord acDataForm, strDocName, strLinkCriteria
Any ideas?