How to Transfer Values to Form2

Terra
07-18-2003, 08:26 PM
Hi is me againg.
So far so good the aplication Im making is going well,im using a textbox to transfer names to a combobox. The aplication save,delete Names("Accaunts") so is going well thanks to the help I been Recieving in this Forum So my Question Now Is this: How Can I do Lets Say to Select A name From the Combobox And By pressing A command button that Calls Form2 All the details Of the Account Will be Displaying in form2. I know I use this:Form2.show but then Each Name account has diferent adress diferent Phone Number so do I need To create another module and loop and use select case or how if you can solve this please give me a hand thank

Anis
07-18-2003, 08:36 PM
You can transfer the combobox value in Form2 using.


Form1.Combo1.text


Then you can search the database for other detail associated with the Name.

Terra
07-19-2003, 12:54 AM
ok as you know the database is emty till i star filling it with accounts names, so what code should go if before adding the names to the combobox I Call another form with diferent textboxes
so I can put the detail of the account like adress and phone number and when I hit the Create Account command button all the detail can be save some where
but only the name of the account will show on the combobox so when I select the name from the combobox and hit the command buttuon "cmddetails" another form can be called that show all the details of the account in textboxes and the name in a label on top of the form.I hope you have a code for this and thank you for your time

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum