G
Guest
Firstly, I’m not a programmer, but just somebody who find’s this very
interesting.
I’m building a database for a company to control their insurance on their
vehicles. I have two forms, frmNewEntry and frmClaims. All the vehicles are
entered into frmNewEntry and when there is an insurance claim, they put that
into frmClaims.
If I enter the vehicle registration number into frmClaims, I want access to
automatically fill in fields like Model, Make, YearOfFirstRegistration,
DriverName,DriverSurname, DriverInitials. I tried to use an If statement in
the lostfocus event of the field,RegistrationNumber in frmClaims.
It looked something like this:
If Form_frmClaim.RegNo = Form_frmNewEntry.RegistrationNumber Then
Form_frmClaim.InsuredDriverName = Form_frmNewEntry.Surname
End If
Can somebody please help me with this.
Regards
Peet
interesting.
I’m building a database for a company to control their insurance on their
vehicles. I have two forms, frmNewEntry and frmClaims. All the vehicles are
entered into frmNewEntry and when there is an insurance claim, they put that
into frmClaims.
If I enter the vehicle registration number into frmClaims, I want access to
automatically fill in fields like Model, Make, YearOfFirstRegistration,
DriverName,DriverSurname, DriverInitials. I tried to use an If statement in
the lostfocus event of the field,RegistrationNumber in frmClaims.
It looked something like this:
If Form_frmClaim.RegNo = Form_frmNewEntry.RegistrationNumber Then
Form_frmClaim.InsuredDriverName = Form_frmNewEntry.Surname
End If
Can somebody please help me with this.
Regards
Peet