Hello,
I have the following, simple code:
Dim From As Integer
Dim to As Integer
From = InputBox("From Date")
to = InputBox("To date")
Me.Filter = "[Year] between from and to"
Me.FilterOn = True
Access can't pass the value I entered in the inputboxes to the filter syntax. When I click on the button to activate the filter, access give me two messageboxes. (The 'querie messageboxes' for parameter input)
When I type into inpubox 'from' 1998 then I want 1998 be used in the me.filter = ....
Thanks,
Albert
I have the following, simple code:
Dim From As Integer
Dim to As Integer
From = InputBox("From Date")
to = InputBox("To date")
Me.Filter = "[Year] between from and to"
Me.FilterOn = True
Access can't pass the value I entered in the inputboxes to the filter syntax. When I click on the button to activate the filter, access give me two messageboxes. (The 'querie messageboxes' for parameter input)
When I type into inpubox 'from' 1998 then I want 1998 be used in the me.filter = ....
Thanks,
Albert