I am making a Data base to manage all the computers in my business, i have two tables:
1)lists all the serial numbers and computer ip address,
2)displays a form for me to write a diagnostic report.
What i want to do, is when i type the computers ip address into the form, i want it to look up the serial number on the linked table, and then automatically populate the ip address field in the form.
Step 1 is to establish a relationship between your two tables, which I'll call SerialNumbers and DiagnosticReports.
Presumably in your SerialNumbers table you have the following fields:
And in your DiagnosticReports tabel you have the following fields:
In the Relationships tab of the Manage Database window (File Menu > Manage > Database > Relationships Tab) you will need to draw a line from the "Serial Number" field of the SerialNumber table to the "Serial Number" field of the DiagnosticReports table
SerialNumbers::Serial Number >----< DiagnosticReports::Serial Number
From here you have a choice to make. Do you want A: To store the IP Address at the time of the Diagnostic Report or to B: Show only the current IP Address for this Serial Number.
To do A, store the IP Address at the time the Diagnostic Report is made:
To do B, show only the current IP Address for this Serial Number: