Results 1 to 5 of 5

Thread: transfer form data to a different form

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Minnesota
    Posts
    830

    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

  2. #2
    Lively Member
    Join Date
    Jun 2003
    Posts
    114
    Yes. Just copy them.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Minnesota
    Posts
    830
    Okay, does anyone have a better answer then just copy them? Looking for a way using code, like a macro function.

  4. #4
    Fanatic Member WorkHorse's Avatar
    Join Date
    Jul 2002
    Location
    Where you live.
    Posts
    591
    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:
    1. Private Sub Command2_Click()
    2.     Forms![Form2]!Text0 = Forms![Form1]!Text0
    3. End Sub

  5. #5
    Banned
    Join Date
    Jul 2003
    Location
    New delhi
    Posts
    143
    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
  •  



Click Here to Expand Forum to Full Width