| | |
It shouldn't be this hard
![]() |
•
•
Join Date: Sep 2007
Posts: 1
Reputation:
Solved Threads: 0
Should be simple but my brain is about to explode. My database has a form frmPets. I am simply trying to take a field (text) from that form and populate other related forms without actually having to open those forms right away. After 2 weeks of searching and banging my head against the keyboard I'm about to go starkers!
I followed Stan Yost's thread but no result for me.
frmPets
type in the pet's name in the PetName text box.
frmPrescription
take the previously entered PetName from frmPets and display it on this form in a text box.
frmConsult
take the previously entered PetName from frmPets and display it on this form in a text box.
I don't want to add a cmd button to open and populate the new forms. I need to have the forms populated when the user opens them.
By the way - I am so new at MS Access and coding that you can still smell that new software scent on me
Thanks for any help you may be able to give me!
I followed Stan Yost's thread but no result for me.
frmPets
type in the pet's name in the PetName text box.
frmPrescription
take the previously entered PetName from frmPets and display it on this form in a text box.
frmConsult
take the previously entered PetName from frmPets and display it on this form in a text box.
I don't want to add a cmd button to open and populate the new forms. I need to have the forms populated when the user opens them.
By the way - I am so new at MS Access and coding that you can still smell that new software scent on me
Thanks for any help you may be able to give me! Hi,
You have to create a module, and in that module declare a public variable (ex: Public PetNam as string). Now in frmPet and on the textbox after update event (or change event) add the following code:
PetNam = Me.txtPetNam (where txtPetNam is the text box in which the name is filled).
Now on the other form open event add the below code:
Me.txtPet = PetNam (where txtPet is the name of the text box in frmPrescription).
You have to create a module, and in that module declare a public variable (ex: Public PetNam as string). Now in frmPet and on the textbox after update event (or change event) add the following code:
PetNam = Me.txtPetNam (where txtPetNam is the text box in which the name is filled).
Now on the other form open event add the below code:
Me.txtPet = PetNam (where txtPet is the name of the text box in frmPrescription).
It is never about the number of languages you know, you either have the logic of programming or you don't ...
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
Some of the codes I post are collected from different sites during the past couple of years, so I would like to thank them for their help and for enabling me to help.
![]() |
Similar Threads
- Problem installing/ghosting new hard drive (Storage)
- Value Hard Drives (Storage)
- DOS C++, pulling boot order and hard drive parameters, (C++)
- Help: Weird Hard drive space flucuation? (Windows NT / 2000 / XP)
- Solid Hard Drive Light (Storage)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: How to incorporate crystal report in vb6
- Next Thread: Find Similars?
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





