|
-
Oct 29th, 2003, 08:58 PM
#1
Thread Starter
Fanatic Member
transfer form data to a different form
I have two MS Access forms (form1, form2) with textboxes in them. Is it possible to have one form pass the value from form1 textbox to form2 textbox?
Thanks advance for your help.
LEe
-
Oct 30th, 2003, 06:58 AM
#2
Lively Member
-
Oct 30th, 2003, 08:26 AM
#3
Thread Starter
Fanatic Member
Okay, does anyone have a better answer then just copy them? Looking for a way using code, like a macro function.
-
Oct 30th, 2003, 06:19 PM
#4
Fanatic Member
Originally posted by lleemon
Okay, does anyone have a better answer then just copy them? Looking for a way using code, like a macro function.
This example copies the text from Text0 in Form1 to Text0 in Form2 when the user clicks on a command button.
VB Code:
Private Sub Command2_Click()
Forms![Form2]!Text0 = Forms![Form1]!Text0
End Sub
-
Nov 7th, 2003, 04:23 AM
#5
Banned
The best Idea is Make a global variable
and store the value of form1
and then when you show second form then display the value in the second one.
it reduce your memory space.and also no need to show the two form at a time
Biswajit das
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|