Results 1 to 2 of 2
  1. #1
    will_clarke is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2012
    Posts
    1

    copying a record and adding in new text

    Hi all,
    I creating a new database and I’ve hit a wall on one part which somebody may be able to help on.
    I have a form which has a specific set of filtered records in it.
    Because of the way production works, one record (or job) may need to be broken down or copied- for example

    Product 1 – when it is been produced it may need to be produced as product 1a and 1b.

    I was trying to put a command button beside the record which would copy the record but also add in some specific text to the comments field in the new record.

    It would go something like
    FIELD1(Descrip) FIELD2(Qty) FIELD3(Comments)
    Product 1 100k
    Product 1 100k FRONT --ŕ(‘Front’ would be added in after the button was clicked)

    My reason for doing this is I need to create a production schedule for each machine.



    Any help or guidance would be greatly appreciated

  2. #2
    SoftwareMatters is offline Access VBA Developers
    Windows XP Access 2003
    Join Date
    Mar 2009
    Location
    Dorset
    Posts
    274
    I did something like this recently. Try something like this:

    Dim rs as recordset
    Set rs = CurrentDb.OpenRecordset("TABLENAME", dbOpenDynaset)
    rs.AddNew
    If Not IsNull(Me!FIELDNAME_1) Then rs!FIELDNAME_1 = Me!FIELDNAME_1 & "EXTRA TEXT"
    rs.Update

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

Similar Threads

  1. Copying Values from One Record to Another
    By Iconoclast in forum Access
    Replies: 5
    Last Post: 08-02-2011, 11:59 AM
  2. Replies: 2
    Last Post: 03-25-2011, 12:22 PM
  3. Replies: 5
    Last Post: 03-23-2011, 10:39 AM
  4. Copying only part of data from a text field
    By davedejonge in forum Queries
    Replies: 1
    Last Post: 02-03-2010, 05:18 PM
  5. Copying selected fields to a new record
    By Lyle Bitikofer in forum Forms
    Replies: 0
    Last Post: 12-13-2009, 04:01 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