Results 1 to 4 of 4
  1. #1
    alex_raju is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    56

    Question how to copy a text data from one form to another form?

    hi,



    how to copy a specific text current data (cursor selected ) from one form to another form by enter?

    (from main form we are opening a small form on text field if enter small form that small form want close and cursor selected data should paste on main form text)

    pls


    thank you

    alex

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,601
    Will require VBA code in some event, such as AfterUpdate of the textbox.

    Forms!mainformname.textboxname = Me.textboxname
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    boblarson is offline --------
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2011
    Posts
    1,272
    If I am understanding you, you want to be able to select some text in one text box and have it be copied to another text box. In the On Exit event of the first text box you can use:

    Me.SecondTextBoxNameHere = Me.FirstTextBoxNameHere.SelText

  4. #4
    alex_raju is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    Jun 2011
    Posts
    56

    how to copy a text data from one form to another form?

    hi sir,

    first of all thank you for u answer,moreover....

    i think may be my question is not clear. i mean actually i want...

    first,in main form there is a text named txtID, due cursor on txtId i am pressing F12 to open searching form ( to search ID no by name ), now i am searching by name in searching form, i am getting similar record one or more then one in searching form but i can be find correct name in a row, so i am selecting by arrow key or click cursor on searching form id text named search!form txtId.
    now, i want if i enter or double click due cursor on searching form txtid, the searching form txtid data( id no) should copy to main form txtID. at the same time searching form should close



    thank you, v.much

    alex

Please reply to this thread with any new information or opinions.

Similar Threads

  1. copy data from a subform to the main form
    By declanfogarty in forum Programming
    Replies: 1
    Last Post: 06-23-2011, 05:31 AM
  2. Copy data from one form to another
    By rcrobman in forum Programming
    Replies: 12
    Last Post: 05-24-2011, 01:25 PM
  3. Copy from one form to another
    By Adam858 in forum Forms
    Replies: 3
    Last Post: 07-29-2010, 01:27 PM
  4. copy data from text file into table in access
    By miziri in forum Programming
    Replies: 3
    Last Post: 08-12-2009, 03:02 PM
  5. Replies: 0
    Last Post: 11-10-2008, 12:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums