ChrisHaynes
Technical User
Hi, I have 2 separate tables, the main table has a list of all the computers in the company along with details about them.
I then have a scanner table which lists all the scanners and contains 'Make', 'Model' etc. along with a 'Department' field and 'PC Name' drop-down field (to show what computer the scanner is connected to)
On the form linked to the scanner table, the user selects the department, and then the computer that the scanner is connected to from the PC Name drop-down box (I have a query which lists all the pc's in the selected department, which populates the PC Name drop-down box)
This data is then stored in the scanner table.
The problem is...
When I change a computer name in the main table which I often have to do, and there is a record in the scanner table containing this PC, this does not get updated in the scanner table, which ends up with the data being incorrect.
I have looked at the relationship 'Referential Integrity' option. But it won't allow me to do this because of the way my forms and tables work.
Because of this, I am thinking my best bet is to use DLookup.
I already have a before update message box on each of the forms which let's the user decide whether to save the changes or not. I was thinking of adding a dlookup function when the user clicks yes, to update the data in the other table which will then syncronise the data.
Does anyone know a code to update the record in the other table?? Or any other solutions to this problem??
Any help on this would be great!
Thanks guys,
Chris.
I then have a scanner table which lists all the scanners and contains 'Make', 'Model' etc. along with a 'Department' field and 'PC Name' drop-down field (to show what computer the scanner is connected to)
On the form linked to the scanner table, the user selects the department, and then the computer that the scanner is connected to from the PC Name drop-down box (I have a query which lists all the pc's in the selected department, which populates the PC Name drop-down box)
This data is then stored in the scanner table.
The problem is...
When I change a computer name in the main table which I often have to do, and there is a record in the scanner table containing this PC, this does not get updated in the scanner table, which ends up with the data being incorrect.
I have looked at the relationship 'Referential Integrity' option. But it won't allow me to do this because of the way my forms and tables work.
Because of this, I am thinking my best bet is to use DLookup.
I already have a before update message box on each of the forms which let's the user decide whether to save the changes or not. I was thinking of adding a dlookup function when the user clicks yes, to update the data in the other table which will then syncronise the data.
Does anyone know a code to update the record in the other table?? Or any other solutions to this problem??
Any help on this would be great!
Thanks guys,
Chris.