G
Guest
hi
I have 3 tables
Vehicles (PK VRM)
Drivers (PK Driver ID)
and VehiclesDrivers (PKs VRM and DriverID)
I have a main form Drivers and a subform DriversVehicles showing drivers
related to the vehicle.
I have a DOB field in the subform. When adding or amending records, if the
user doesn't enter a value, how can I automatically add the value "unknown"
to the field in the underlying Drivers table, then have this show in the DOB
field in the form? (Before Update event?)
I currently have the input mask 00/00/00;0;_ on both the form textbox and
the table field. Does this input mask still allow other values (ie "unkown")
to be written by code, or does an input mask prevent entry from both the
keyboard and by an automatic "write" from code?
If an automatic "write" is forbidden, I guess I'll have to take the input
mask off, at the expense of permitting inaccurate data entry in the DOB
field. Or is there another way to do this?
TIA
rich
I have 3 tables
Vehicles (PK VRM)
Drivers (PK Driver ID)
and VehiclesDrivers (PKs VRM and DriverID)
I have a main form Drivers and a subform DriversVehicles showing drivers
related to the vehicle.
I have a DOB field in the subform. When adding or amending records, if the
user doesn't enter a value, how can I automatically add the value "unknown"
to the field in the underlying Drivers table, then have this show in the DOB
field in the form? (Before Update event?)
I currently have the input mask 00/00/00;0;_ on both the form textbox and
the table field. Does this input mask still allow other values (ie "unkown")
to be written by code, or does an input mask prevent entry from both the
keyboard and by an automatic "write" from code?
If an automatic "write" is forbidden, I guess I'll have to take the input
mask off, at the expense of permitting inaccurate data entry in the DOB
field. Or is there another way to do this?
TIA
rich