Results 1 to 5 of 5
  1. #1
    The is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    13

    Sending the ID for indiviual row to another form


    I made a report that sort all my data, next to each individual row there is Edit button.
    For the OnClick Event for the button I used OpenForm from the Macro Builder to open my editing form. Now I am trying to send the unique ID for that specific row to the next form. I could not do that using the Where Condition filed. Each time I click the edit form, it popup a dialog asks my to enter the id.

    How can I properly send the ID to the new form, and use it there?

    Thanks for your help

  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,770
    You mean you made a form to sort data and button is on form?

    Why do you need to 'send' the ID? Are you creating a new record? Or do you just need to filter the form?
    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
    The is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    13
    Quote Originally Posted by June7 View Post
    You mean you made a form to sort data and button is on form?

    Why do you need to 'send' the ID? Are you creating a new record? Or do you just need to filter the form?
    No sir

    I made a report just to view all records in a certain order. Next to each record, and there is an update button. The update button take you to the editing form.

  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,770
    Buttons won't work in report PrintPreview mode.

    I don't know why you get input popup. If you want to provide db for analysis, follow instructions at bottom of my post.
    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.

  5. #5
    The is offline Novice
    Windows 8 Access 2013
    Join Date
    Nov 2014
    Posts
    13
    Thanks for the important information.

    About my question, I solved it using:
    Code:
    DoCmd.OpenForm "Edit_Unit", , , "U_ID=" & Me.U_ID
    I thought report the only way to sort the data under category!!

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

Similar Threads

  1. Combining 'sending mail' with 'sending a report'.
    By Mattbro in forum Programming
    Replies: 2
    Last Post: 11-25-2012, 07:42 AM
  2. Sending Data From one form to another
    By Anira in forum Forms
    Replies: 1
    Last Post: 06-29-2012, 01:05 PM
  3. Replies: 3
    Last Post: 04-15-2012, 05:25 PM
  4. Sending data from form to multiple emails
    By GeorgeB in forum Access
    Replies: 11
    Last Post: 01-09-2012, 04:23 PM
  5. Automate sending SMS form MS Access
    By Johan in forum Programming
    Replies: 8
    Last Post: 04-15-2010, 12:51 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