Form wizard question

Jon123

Registered User.
Local time
Yesterday, 21:36
Joined
Aug 29, 2003
Messages
668
Working on a form and when using the wizard to add a command button or a txt box the wizard gives it a funny name like command989. Im wondering why? Where does this default come from and why is the number so high? There is no way anywhere near that number of command buttons on this form. Does this matter? Can it be reset?

Jon
 
Jon,

When Access names/numbers your objects for you it generally gives you something like Text0, Text1, Command0, Command1.

There is no problem with changing the name after it has assigned it.
The one thing to look for is, if it generates code, you will find some
code like:

Private Sub Command989_Click()
...
End Sub

Just change the "Command989" to your new name and you'll be OK.

Wayne
 
The number is incremented across all controls so if you create a textbox and label it will be text1 and label2.

As Wayne says, you can change it to something more meaningful (it is advisable to do so) and rename the code event if one already exists
 
Can you change access 2010 so that when you use the wizard to create a command button it uses vba code as did 2007 instead of using macros?
 

Users who are viewing this thread

Back
Top Bottom