Update records

herby_one

Registered User.
Local time
Today, 20:54
Joined
Sep 30, 2004
Messages
22
Hi,
I have a basic 'landlord details' table which includes a 'landlord_type' field. Landlords must be either 'private' or 'business'.
I have a form with two subforms - one each for private and business.
When I select the 'Save' button, I want the landlord_type field to be updated in the table, ie. if the Save button in the Private subform is hit then Private displayed in the table and same for business.
I've tried the OnClick event but without success.
I know this should be some basic VBA but any suggestions would be appreciated.
thanks in advance.
 
Combo Box

Why not use a combo box rather than a Sub Form?
 
have the 'landlord_type' field on the main form and set the value with the save button before actualy saving, then it will save with the record set

Peter
 
Combo Box

thanks for the quick reply!
yeah I did consider that....
When I select a landlord type in the combo box, can certain fields then be made inactive. For example I have several fields that data will only be entered if the type is 'business'.
Is it best to do this through VBA or is there an easier way?
thanks again.
 

Users who are viewing this thread

Back
Top Bottom