Looking for Simple Instructions for Linked Databases
Posted: Mon Apr 25, 2016 8:20 pm
I am struggling with getting forms built from linked databases to work properly. Rather than trying to describe all the places I've stumbled, it might be easier for anyone replying to this message to explain, and easier for me to grasp, if you just assume that I'm an untrained monkey and you're going to explain from scratch.
Here is what I need:
A primary table (call it 'ATable') to hold client records. Fields: An auto-increment Integer ID field (call it 'AID'), a Client name Text field, a Client account Text field, and linked fields to the rest of the tables (call them 'BLink', 'CLink', and 'DLink').
Record 1: Do not enter data for record 1. I want to leave this table empty and begin filling it using an integrated form, adding records and having the linked tables supply part of the data entry.
A linked table (call it 'BTable') to hold police records. Fields: An auto-increment Integer ID field (call it 'BID'), a City/Region Text field, a Dept name Text field, and a Phone number Text field.
Record 1: 'Dalton, GA'; 'Dalton Police Dept'; '706-555-1210'
Record 2: 'Calhoon, GA'; 'Whitfield County Sheriff Office'; '706-555-1212'
Record 3: 'Chicago, IL'; 'Chicago Police Dept'; '847-555-1213'
Record 4: 'Highwood, IL'; 'Cook County Sheriff Office'; '847-555-1214'
A linked table (call it 'CTable') to hold fire records. Fields: An auto-increment Integer ID field (call it 'CID'), a City/Region Text field, a Dept name Text field, and a Phone number Text field.
Record 1: 'Dalton, GA'; 'Dalton Fire Dept'; '706-555-1215'
Record 2: 'Calhoon, GA'; 'Calhoon Volunteer Fire Dept'; '706-555-1216'
Record 3: 'Chicago, IL'; 'Chicago Fire Dept Station 1'; '847-555-1217'
Record 4: 'Highwood, IL'; 'Chicago Fire Dept Station 12'; '847-555-1218'
A linked table (call it 'DTable') to hold States and their USPS Abbreviations. Fields: An auto-increment Integer ID field (call it 'DID'), a State name Text field, and a State abbreviation Text field.
Record 1: 'Georgia'; 'GA'
Record 2: 'Illinois'; 'IL'
Record 3: ..., etc.
An integrated form that displays:
Now, I've been able to manually pre-populate the 'ALink', 'BLink', and 'CLink' fields in an ATable record by entering data directly into ATable without a form, and I've been able to create forms that display the appropriate BTable, CTable, and DTable records, but I have not been able to create a form that allows creating new ATable records while selecting the appropriate records from BTable, CTable, and DTable.
I want to create a form that REDUCES stress and the time data-entry takes for an novice data-entry users.
Can anyone tell me, step-by-step, from table creation to table linking to form creation to field (list box and/or combo box) creation to SQL statements that will produce a stable, working form that allows both existing records review and new records addition?
Here is what I need:
A primary table (call it 'ATable') to hold client records. Fields: An auto-increment Integer ID field (call it 'AID'), a Client name Text field, a Client account Text field, and linked fields to the rest of the tables (call them 'BLink', 'CLink', and 'DLink').
Record 1: Do not enter data for record 1. I want to leave this table empty and begin filling it using an integrated form, adding records and having the linked tables supply part of the data entry.
A linked table (call it 'BTable') to hold police records. Fields: An auto-increment Integer ID field (call it 'BID'), a City/Region Text field, a Dept name Text field, and a Phone number Text field.
Record 1: 'Dalton, GA'; 'Dalton Police Dept'; '706-555-1210'
Record 2: 'Calhoon, GA'; 'Whitfield County Sheriff Office'; '706-555-1212'
Record 3: 'Chicago, IL'; 'Chicago Police Dept'; '847-555-1213'
Record 4: 'Highwood, IL'; 'Cook County Sheriff Office'; '847-555-1214'
A linked table (call it 'CTable') to hold fire records. Fields: An auto-increment Integer ID field (call it 'CID'), a City/Region Text field, a Dept name Text field, and a Phone number Text field.
Record 1: 'Dalton, GA'; 'Dalton Fire Dept'; '706-555-1215'
Record 2: 'Calhoon, GA'; 'Calhoon Volunteer Fire Dept'; '706-555-1216'
Record 3: 'Chicago, IL'; 'Chicago Fire Dept Station 1'; '847-555-1217'
Record 4: 'Highwood, IL'; 'Chicago Fire Dept Station 12'; '847-555-1218'
A linked table (call it 'DTable') to hold States and their USPS Abbreviations. Fields: An auto-increment Integer ID field (call it 'DID'), a State name Text field, and a State abbreviation Text field.
Record 1: 'Georgia'; 'GA'
Record 2: 'Illinois'; 'IL'
Record 3: ..., etc.
An integrated form that displays:
- 'BTable'.'City/Region' but saves the selected 'BID' into ATable's 'BLink' field when a new ATable record is created
- 'CTable'.'City/Region' but saves the selected 'CID' into ATable's 'CLink' field when a new ATable record is created
- 'DTable'.'State' field but saves the selected 'DID' into ATable's 'DLink' field when a new ATable record is created.
Now, I've been able to manually pre-populate the 'ALink', 'BLink', and 'CLink' fields in an ATable record by entering data directly into ATable without a form, and I've been able to create forms that display the appropriate BTable, CTable, and DTable records, but I have not been able to create a form that allows creating new ATable records while selecting the appropriate records from BTable, CTable, and DTable.
I want to create a form that REDUCES stress and the time data-entry takes for an novice data-entry users.
Can anyone tell me, step-by-step, from table creation to table linking to form creation to field (list box and/or combo box) creation to SQL statements that will produce a stable, working form that allows both existing records review and new records addition?