Hi Guys
I'm hoping you can help me with this as it's driving me NUTS
The database stores info about which offices within each region have been assessed by which assessor.
I have four tables
TblRegion - stores the regions
TblOffice - stores the offices within each region (lookup field in TblRegion)
TblAssessor - stores the assessor names and occupations
TblSite - stores the assessor name, region, office and date of assessment (llokup fields to TblAssessor, TblOffice)
I have a search form, which allows users to search by assessor name, region, office loaction or date. This uses a simple query and displays the results in a report.
The problem is when I close the form, the name of the assessor in the first record in TblAssessor is overwritten!! And it seems to be overwritten by the name of the first result of the query. And this only happens after the search form is closed. If the form remains open, the record isn't overwritten
The form desn't have any code on the Close event except Docmd.Close
e.g. the first record in TblAssessor is Joe Bloggs. I run the query and the first result of the query is John Smith, when I open TblAssessor the name has changed from Joe Bloggs to the record number of John Smith (i.e. if John Smith is record number 12, then '12' will appear instead of Joe Bloggs). If there are no records for the search criteria then Joe Bloogs is overwritten by '0'.
Sorry if I haven't explained this too clearly
Dave
I'm hoping you can help me with this as it's driving me NUTS
The database stores info about which offices within each region have been assessed by which assessor.
I have four tables
TblRegion - stores the regions
TblOffice - stores the offices within each region (lookup field in TblRegion)
TblAssessor - stores the assessor names and occupations
TblSite - stores the assessor name, region, office and date of assessment (llokup fields to TblAssessor, TblOffice)
I have a search form, which allows users to search by assessor name, region, office loaction or date. This uses a simple query and displays the results in a report.
The problem is when I close the form, the name of the assessor in the first record in TblAssessor is overwritten!! And it seems to be overwritten by the name of the first result of the query. And this only happens after the search form is closed. If the form remains open, the record isn't overwritten
The form desn't have any code on the Close event except Docmd.Close
e.g. the first record in TblAssessor is Joe Bloggs. I run the query and the first result of the query is John Smith, when I open TblAssessor the name has changed from Joe Bloggs to the record number of John Smith (i.e. if John Smith is record number 12, then '12' will appear instead of Joe Bloggs). If there are no records for the search criteria then Joe Bloogs is overwritten by '0'.
Sorry if I haven't explained this too clearly
Dave