A push button on the form executes a query that executes the VBA code. Yes, I am viewing the form when I do this. I thought maybe because the textbox was in the Header section of the form - but I moved the textbox to Detail and nothing. When I creat a new textbox in the "bad" form, it does...
Woops. Did not work first time. The message told me the table was updated, but that was just because when the query is over. It is still getting hung up about the textbox being null.
Is there any setting in the properties of the textbox that could be preventing data from being passed...
I have a form that has a textbox in it. I am using the information to update a table in ACCESS. I am getting "invalid use of null" on this line:
newmgmtcode = Forms![form1]![textmgmtcode]
I have also tried
newmgmtcode = Forms![form1]![textmgmtcode].Value
Either way, I get invalid use of...
Thanks for the quick response.
As a general rule, I don't use error bypassing so On Error Resume Next was code I had never used - consequently, my erroneous placement of it. I tested it and it worked like a charm. Thanks a bunch.
I have a problem. I have a table that is created in an ACCESS DB that runs daily. This table is deleted at the beginning of the next run. In certain situations, the table does not exist. I have been trying to test for that situation so I can continue processing without error but have been...
Thanks for the code. I found out how to do it within the make table query itself. I just had to add the tblUserids table to the available tables and then right clicked on the criteria box. Then select Build. Then double click on the table tblUserids and the code is generated. Thanks for the...
Hello. I have a make table query where I am selecting records from a table based on values I have put in to the criteria section of the query. This works fine. There is one field on the table "user", that I want to select from based on values in another table "tblUserids". Can I do that in...
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.