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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple question about copying forms

Status
Not open for further replies.

skeddy

Programmer
Jul 8, 1999
37
US
I have a form with a combo box to select the Contact name. I've been playing with this for awhile and have a couple of attempts at coding for this combo box in the form's module. Even deleted then re-created the combo box with a different name and tried different code on that. Finally got the form to work.<br><br>I copied this form cause I'm going to try another table structure and form redesign. Now when I open the copy of the form (without having changed a thing on the form) I get a message asking for Forms!ContactInformation!cboMemberSelect and when I select a name from the combo box I get a message asking for Forms!ContactInformation!Find. Does this mean&nbsp;&nbsp;something in the code of the original form isn't correct - however, when I open the original form - it works! How come?<br><br>In learning to program if I end up deleting a command button (whether its created with a Wizard or not) should I also go into the code and remove the code that went with that button?
 
one of a couple of things:<br>What is the name of your new form?<br>is it &quot;ContactInformation&quot; or is that the form where it works fine.<br>What is the name of the combo box on the new form is it &quot;cboMemberSelect&quot; or something else?<br><br>Does your form have a query that has the combo box in it which is not the correct one for that form?<br><br>here is your error:<br>Forms!ContactInformation!cboMemberSelect <br>look at it closely and examine everything closely<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
Copying a form should give no problem.<br>Try making another copy of your original under yet another name, does it work?<br><br>When you change a combobox or textbox name, you loose any &quot;event procedure&quot;, although you can copy and paste it back from the previous name version.<br>If any of your macros, event procedures, or queries refer to your form name, changing its name may of course have consequences.<br><br>HTH<br>Riny<br>
 
Thanks - I found it - the fault was in the query's criteria that the form was based on. Wow, there are so many layers that you must keep in mind! Guess you always have to just keep digging deeper into the source.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top