On entry to my form it opens a new record for the user to add. At the top of this form I have two fields that are entered first. A Store # and a Date. I have an index setup with those 2 fields that does not allow duplicates. This is what I would like to do.
They enter their store number and tab to the date field. Then enter the date and tab out of that field. Now I want it to search the database for a record matching the Store # and Date they entered. (Otherwise they are going to fill out this long form then try to save it and it's going to tell them there is already a record). If successful, I would like it to load that record. I'm fairly sure I need to code it under On Exit of the Date InputBox but the only DoCmd function I've found (FindRecord) only allows you to specify one criteria, not two.
Does anyone know if this is possible, if so, could you give me some tips?
They enter their store number and tab to the date field. Then enter the date and tab out of that field. Now I want it to search the database for a record matching the Store # and Date they entered. (Otherwise they are going to fill out this long form then try to save it and it's going to tell them there is already a record). If successful, I would like it to load that record. I'm fairly sure I need to code it under On Exit of the Date InputBox but the only DoCmd function I've found (FindRecord) only allows you to specify one criteria, not two.
Does anyone know if this is possible, if so, could you give me some tips?