Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form debug 1

Status
Not open for further replies.

and0b

MIS
Mar 27, 2007
51
US
Hi!

I'm new in MsAccess. Firend asked me to fix him some MsAcces application - add small code to the form. I added button to the form, wrote a code and now I trying to test it but I cannot run this form! I tried to debug it, by using F8 - step into, but it does not work. When I try to use run option from menu it is trying to run som macro, can someone help me little bit with this problem?
Thanks!
 
Please post the code you added.

Did you hear about the Buddhist who refused Novocain during a root
canal? He wanted to transcend dental medication.
 
I already took it away, there is now only message box, but problem is not in the code itself but in debugging the form. In VB or VFP you can run any form during design time and test its functions, with F8 key you can step into code and run it line by line, or with F5 you can run code to the cursor and line by line thereafter. In MsAccess none of that is working. F8 id doing nothing and F5 is trying to run macros.
 
In Access you can just open the form as normal to test it. There is no DEBUG mode per se as in VB that i know of. If Access bugs out, it will autoswitch you to code view and you can also set breakpoints to stop at certin points on your own as in VB.

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
VB/Access Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top