Results 1 to 4 of 4
  1. #1
    Patsar is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    2

    Copy data from one field to several fields

    Hello All !!! I am a photographer trying to automate my processes using Access. I ran into an issue that I am not able to solve alone. Your help would be very much appreciated.

    I have the following tables:



    Clients : [ClientID], [Name], [Phone], [Email]
    Proof: [ProofID], [ClientID], [Proofs]

    There are 4 proofs for each client. To automate the printing of my order forms. I need to merge and export the data into an Excel spreadsheet with the following fields:

    ClientID, Name, Proof1, Proof2, Proof3, Proof4

    How can I copy the [Proof] entries to different fields ?

    Thanks a lot !!!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    This is de-normalizing data.

    One method is a CROSSTAB query. This requires a field that numbers the four records. This field will be the column header in the CROSSTAB.

    Another uses VBA to write records to a 'temp' table (table is permanent, records are temporary).

    Why do you need Excel involved? Why not Access report for printing documents?
    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
    Patsar is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2015
    Posts
    2
    Thanks a lot, it is the solution to my problems but is there a way to easily populate de the field that numbers the four records? I have more than 600 proofs to numbered !!!

    You are right I probably can avoid using Excel... I need to export a .CVS file to use with Adobe InDesign to create my order form. Thanks a lot you just save me a lot of work... by the way this issue arise from bad database design (photographer acting as database programer !!!)... I changed my design for my next client but I need to save the data fot this client !!!

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,632
    Not sure it is 'bad' db design, but definitely a special requirement for data output.
    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.

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

Similar Threads

  1. Replies: 1
    Last Post: 08-08-2015, 10:34 AM
  2. Replies: 2
    Last Post: 08-07-2014, 07:31 AM
  3. Copy data into a blank field
    By winterh in forum Database Design
    Replies: 2
    Last Post: 04-16-2012, 04:57 AM
  4. Code to copy data from one field to another?
    By graffiti in forum Programming
    Replies: 1
    Last Post: 12-01-2011, 11:13 AM
  5. String to Copy a Field of Data to Another Table
    By aquarius in forum Programming
    Replies: 1
    Last Post: 09-17-2010, 09:02 AM

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