I tried to insert the command in the Input Parameter of the form but for some reason it didn't work.
But this works though:
Instead of naming the parameter @myParameter, I name the parameter the same name as the form that will use it (@FormName). So my code is
Select *
From...
Where...
Thanks,
When I ran that query, it asks me to enter value for @myParameter.
How can I set value for @myParameter in the code?
I tried:
@myParameter = [Forms]![frm_1]![txtBox].[Value]
and
SET @myParameter = [Forms]![frm_1]![txtBox].[Value]
but both give me error "Incorrect syntax near...
Hi,
I'm trying to convert an Access file to an Access Project (Upsize the tables to SQL Server). Some errors prevent me from upsizing my query so I am trying to copy queries from the old .mdb file to the new .adp file.
One of my query in .mdb file has this in the criteria...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.