JeanieGreene
Registered User.
- Local time
- Today, 01:29
- Joined
- Nov 13, 2017
- Messages
- 24
Hello all.
I have attached my database. I need my entry on Main_Page to self populate into the form Vehicle on the press of the return key. The Main_Page is the data entry site for my "Radiolog" table. The point of the radiolog is to keep track of and time stamped all radio traffic that occurs. But, when a LE request to run something (is on a traffic stop) we have to log the information in the radio log, but I do not want to then reenter the information in the vehicle form/table. I want the information to self populate in the appropriate fields and bring open the Vehicle Form to enter further data.
This is the code I am currently using...
Private Sub Form_Main_Page_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Key Code = 0
If IsNull(FunctionKey) Then
Me.FunctionKey.SetFocus
Else
If Me.FunctionKey = t Then
DoCmd.OpenForm Vehicle
Forms!Vehicle!UnitCalling = Me.UnitCalling
Forms!Vehicle!(Location, [Vehicle State], Plate) = Split(Me.Notes, ",")
End If
End Sub
However, this code does absolutely nothing! :banghead:
Thank you for any help. You guys were life savers before.
I have attached my database. I need my entry on Main_Page to self populate into the form Vehicle on the press of the return key. The Main_Page is the data entry site for my "Radiolog" table. The point of the radiolog is to keep track of and time stamped all radio traffic that occurs. But, when a LE request to run something (is on a traffic stop) we have to log the information in the radio log, but I do not want to then reenter the information in the vehicle form/table. I want the information to self populate in the appropriate fields and bring open the Vehicle Form to enter further data.
This is the code I am currently using...
Private Sub Form_Main_Page_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Key Code = 0
If IsNull(FunctionKey) Then
Me.FunctionKey.SetFocus
Else
If Me.FunctionKey = t Then
DoCmd.OpenForm Vehicle
Forms!Vehicle!UnitCalling = Me.UnitCalling
Forms!Vehicle!(Location, [Vehicle State], Plate) = Split(Me.Notes, ",")
End If
End Sub
However, this code does absolutely nothing! :banghead:

Thank you for any help. You guys were life savers before.