About Access forms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Ancikam
    New Member
    • Feb 2007
    • 1

    About Access forms

    Hi
    my name is anas and my question is how can we link things in forms

    e.g I have member id as combo box for 30 empolyees and i want when i select the member id the rspective member name automatically comes in the text box which is infront of the member name lable plz help me
    i have a project to submit in 4 days and i need your help
    plz reply to me on my account:
    [Deleted E-mail]


    BYE
    Last edited by Rabbit; Feb 26 '07, 04:48 PM. Reason: No e-mails. Forum policy.
  • Rabbit
    Recognized Expert MVP
    • Jan 2007
    • 12517

    #2
    You need code in the After Update event of the combo box.

    Code:
    Private Sub Combobox_Name_AfterUpdate()
      Me.TextBoxName = DLookUp("[Field Name]", "[Table Name]", "[Member ID] = '" & Me.[Combobox Name] &"'")
    End Sub

    Comment

    Working...