Results 1 to 3 of 3
  1. #1
    TEDOC is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    5

    Button in Form to open a different form and chose a customer based on last form

    Hello Guys,

    Basically I have a Customer Form, which I have a New party button on it,
    this button opens up the party form to a new party, what I would like it to do is open up a new party but make the new party for the customer I had selected in the previous form.

    I have tried the GoTo macro's but cannot seem to get it to work, A little guidance and/or help on this would be greatly appreciated.

    I am thinking on clicking the button it will need to get the Customer ID, and then open the party form, create new party, and paste in the Customer ID, which then updates the Name - Date - Address - Company Fields.

    How would I go about getting this to work?Jubilee.zip

  2. #2
    TEDOC is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    5
    I have tried this. On the Customer Form Button,

    Code:

    DoCmd.OpenForm "New Party List", acNormal, "", "", , acNormal On Error Resume Next DoCmd.GoToRecord , "", acNewRec If (MacroError <> 0) Then Beep MsgBox MacroError.Description, vbOKOnly, "" End If

    And this as the New Party List Form OnLoad

    Code:

    Me.[Name of Customer] = Forms("Customers")("Customer Name")

    I get this error.

    The Value you entered isn't valid for this field

  3. #3
    TEDOC is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Mar 2013
    Posts
    5
    Can anyone please help me with this?

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

Similar Threads

  1. Open a form based on date off another form
    By BorisGomel in forum Access
    Replies: 1
    Last Post: 11-29-2012, 04:42 PM
  2. Replies: 3
    Last Post: 08-18-2012, 03:21 PM
  3. Replies: 2
    Last Post: 05-11-2012, 11:52 AM
  4. Replies: 11
    Last Post: 01-26-2012, 01:22 PM
  5. Replies: 1
    Last Post: 03-03-2010, 07:29 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