Results 1 to 2 of 2

Thread: Passing Data Through Forms

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jan 2005
    Posts
    24

    Passing Data Through Forms

    I know there are other threads on this but I have tried all the solutions and none have worked.

    I currently have 2 forms, a customer form and a customer health form.

    I want to pass the membershipNo from the customer form to a newly opened customer health form.

    this is the code I am using but it isnt working, actually it is, but when i delete all the current customer entries and enter new ones it doesnt pick up the details and all the controls on the customer health form are greyed out.

    Code:
    Private Sub cmdCustHealth_Click()
    
    DoCmd.OpenForm "CustomerHealth", , , "[MembershipNo] = " & Forms!CustomerForm!membershipNo, , acDialog
    
    End Sub
    The control source on the text box on the customer health form is "membershipNo" where am I Going wrong?
    Attached Files Attached Files

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Passing Data Through Forms

    Access VBA question moved to Office Development

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width