Enter data into multiple tables from one form (1 Viewer)

June7

AWF VIP
Local time
Today, 06:05
Joined
Mar 9, 2014
Messages
5,468
When you say you get an error, please provide exactly what that error is - error message, wrong result, nothing happens.

Fixes:

1. subform RecordSource can simply be TransactionTbl - SQL statement did not include all fields

2. set subform container Master/Child Links properties to CustID fields

3. bind Combo0 to VehRegNo field

4. make CardType a combobox

5. TransactionID textbox should be at least Locked Yes and TabStop No. Or don't even have this textbox. Users don't need to see this field.
 

Ctang

Registered User.
Local time
Today, 15:05
Joined
Jan 27, 2019
Messages
10
Hi June7

The error message is "you cannot add or change a record because the related record is required in table customertbl' . But I don't want to add or change anything in that table, all I want to do is add the transaction details into the transaction table.
 

June7

AWF VIP
Local time
Today, 06:05
Joined
Mar 9, 2014
Messages
5,468
Did you try the fixes? Or examine the db provided by Mike to see what's different from yours?
 

Users who are viewing this thread

Top Bottom