Results 1 to 3 of 3
  1. #1
    lexygirl is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2011
    Posts
    8

    Form to be blank upon opening then choose client form combo box

    I have an Enter Payments form that I want to be blank when its opened.... I then want to search for a client via a combo box and then view data on that client
    Enter Payments Form - Fields - client number, first name, surname


    Bookings Subform - Fields - booking id, booking date, booking resource, booking type, booking rate, booking time slot, booking cancelled, client id (FK)
    When i choose the client from a combo box then all the above fields get populated. My combo box has these fields - client number, first name, surname and it is in the forms header....
    I have tried to put data entry to yes, and the form opens blank but when i pick my client from the combo box no data is populated in the form....
    Any ideas would be greatly appreciated

  2. #2
    outhwaik is offline Novice
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    8
    Have you tried putting code in the after update event for the combo box to update the other fields? Don't know if that helps or not!

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    Make the record source of your form a query that has this as it's criteria in the CUSTOMERID field

    forms!<yourformname>!<yoursearchfieldname>

    Where yourformname and yoursearchfieldname would reflect the name of you data entry form and the lookup field.

    Then in the ON EXIT property of your combo box have the following

    me.requery

    This will refresh the form with the data from the customer you selected.

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

Similar Threads

  1. Opening a form at a blank record
    By Remster in forum Forms
    Replies: 2
    Last Post: 09-14-2010, 07:46 AM
  2. Replies: 1
    Last Post: 08-27-2010, 05:16 AM
  3. Combo box shows blank on opening the Form
    By Alex Motilal in forum Forms
    Replies: 7
    Last Post: 01-15-2010, 11:59 AM
  4. Replies: 3
    Last Post: 09-26-2009, 01:57 PM
  5. Replies: 1
    Last Post: 03-15-2009, 04:46 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