I'm trying to assign a variable as an integer and I'm getting a runtime error that
the parameter query produced an error 'the object doesn't contain the automation object 'Apr2003."
Apr2003 is a record in the table I'm looking up, but I wonder what the period or double quotes is afterward. I'm trying to assign loopcount1 as follows where begindate is the combobox name
loopcount1 = DLookup("[id]", "monthlist", "[shortmonth] = " & begindate)
Do I need to trim begindate? I tried using a left function, but this produced the same error.
thanks
the parameter query produced an error 'the object doesn't contain the automation object 'Apr2003."
Apr2003 is a record in the table I'm looking up, but I wonder what the period or double quotes is afterward. I'm trying to assign loopcount1 as follows where begindate is the combobox name
loopcount1 = DLookup("[id]", "monthlist", "[shortmonth] = " & begindate)
Do I need to trim begindate? I tried using a left function, but this produced the same error.
thanks