B
Brett
Can you tell me what I'm doing wrong here. I'm trying to
simply set a query field criteria to a value. I get an
Error 424 on the line where I try to set the control's
criteria equal to a integer:
Option Compare Database
Dim Year As Integer
Function SetYear()
Set dbs = CurrentDb
Year = InputBox("Enter the year:")
DoCmd.OpenQuery "qryFileNetPercentUptime: quarter 1",
acViewDesign
Query![qryFileNetPercentUptime: quarter 1]![Beginning
Date].Criteria = Year
End Function
simply set a query field criteria to a value. I get an
Error 424 on the line where I try to set the control's
criteria equal to a integer:
Option Compare Database
Dim Year As Integer
Function SetYear()
Set dbs = CurrentDb
Year = InputBox("Enter the year:")
DoCmd.OpenQuery "qryFileNetPercentUptime: quarter 1",
acViewDesign
Query![qryFileNetPercentUptime: quarter 1]![Beginning
Date].Criteria = Year
End Function