a.phillips
Registered User.
- Local time
- Yesterday, 16:26
- Joined
- Jul 19, 2011
- Messages
- 37
I have a database with Access 03 as the front end, and SQL sever 2008 as the back end.
I have a form, which uses a query - named 'visit_main' as a record source which used many linked tables, here are 3 example tables it uses:
Visit
Visit ID (PK)
Date of visit
PtID
Demographic ID
Tests
Visit ID (PK)
English
Maths
Science
Lifestyle
Visit ID (PK)
Weight
Height
BMI
I have linked 'visit main' to the form, so that people can enter data into the tables. The Visit ID an auto number, so when a new visit is added one is automatically generated.
I have 'tests' as a subform, with the 'Visit ID' used as the link to the child and master field. This works fine, and the data is entered and stored in SQL Server
I do not have tests in a subform, instead I have the textboxs directly on the form for the data to be entered, with the control source as 'visit_main'.
The problem is I can't enter any data at all into these textboxes.
I'm think this is because it doesn't know what the visit ID is. When I enter the correct visit ID into SQL sever it then allows me to enter the other data via access no problem.
What can I do so that all of the data can be entered via access?
I have tried to explain as best as possible, but if you need to know any other information please ask, thanks in advance for any advice I get given.
I have a form, which uses a query - named 'visit_main' as a record source which used many linked tables, here are 3 example tables it uses:
Visit
Visit ID (PK)
Date of visit
PtID
Demographic ID
Tests
Visit ID (PK)
English
Maths
Science
Lifestyle
Visit ID (PK)
Weight
Height
BMI
I have linked 'visit main' to the form, so that people can enter data into the tables. The Visit ID an auto number, so when a new visit is added one is automatically generated.
I have 'tests' as a subform, with the 'Visit ID' used as the link to the child and master field. This works fine, and the data is entered and stored in SQL Server
I do not have tests in a subform, instead I have the textboxs directly on the form for the data to be entered, with the control source as 'visit_main'.
The problem is I can't enter any data at all into these textboxes.
I'm think this is because it doesn't know what the visit ID is. When I enter the correct visit ID into SQL sever it then allows me to enter the other data via access no problem.
What can I do so that all of the data can be entered via access?
I have tried to explain as best as possible, but if you need to know any other information please ask, thanks in advance for any advice I get given.