How to autofill form fields in vb with access db

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • asadameer
    New Member
    • Jan 2010
    • 3

    How to autofill form fields in vb with access db

    How do i select company from combo box so other fields should fill automatically from its table.

    I have following fields

    Company name
    Company address
    company Phone Number
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    for that you need to frame the query dynamically by passing the selected value from combo box at run time.

    Please post the code that you are working on.

    Comment

    • asadameer
      New Member
      • Jan 2010
      • 3

      #3
      thanks for you reply
      bro i am working on msaccess 2007 basically i want to fill company address and company phone number automatically when i select company name

      Comment

      • asadameer
        New Member
        • Jan 2010
        • 3

        #4
        can anyone reply asap please i am stuk here plzzzzzz

        Comment

        • smartchap
          New Member
          • Dec 2007
          • 236

          #5
          In the access database search for the Company Name selected in combobox (put this code in ComboBox_Click event) from first record to Last record. As soon as the Company Name is found, fill other textboxes (Address 7 Phone No.) with other fields' data in that particular record.

          Comment

          Working...