Design by Sue
Registered User.
- Local time
- Today, 10:57
- Joined
- Jul 16, 2010
- Messages
- 816
I have created an insert statement in code that is to run on a button click. The code is to add the information from the form to a table. Simple enough - except no matter how I write the code either using dbs.execute or DoCmd.RunSQL the code I write will compile but will not be run. I have put a stop in the code and stepped through it and I see that it does run through the code, but with no results. I have entered a typo in the code and the complier tells me there is an error. BUT if the error is in the name of the table or field or form, when I click the button, access runs through the code with no compliant but does nothing. I know it is running through it completely because the last line is to "go to next record" on the form and it does that. I have also put a message box in right after the insert code and that does produce the message box.
I am pulling my hair out on this because I just don't understand why this could be happening.
Werd question I know but anyone have any idea what is going on??
Sue
I am pulling my hair out on this because I just don't understand why this could be happening.
Werd question I know but anyone have any idea what is going on??
Sue