Hi everyone,
I hope all safe and healthy during this pandemic.
I have following code on form No 1 (Command button)
and i have following code on form 2 (On load event)
its working fine if i try to pass the text but i dont know how to pass the fields data and another form which is going to open after command button event have two 2 unbound combo boxes first is cboSelectAccount and second is cboEntryNo both are integer.
I dont know how to modify this to add the field controls instead of text to pass to another form on (on load event)
Any help will be appreciated.
I hope all safe and healthy during this pandemic.
I have following code on form No 1 (Command button)
Code:
Option Compare Database
Option Explicit
Private Sub BtnOpen_Click()
If Me.EntryType = "Bank Transfer" Then
DoCmd.OpenForm "frmBankTransferEntry", acNormal, , , acFormAdd, acDialog, "me.BankAccount;me.EntryNo"
End If
End Sub
and i have following code on form 2 (On load event)
Code:
If Not Trim(Me.OpenArgs & " ") = "" Then
Me.cboSelectAccount = Split(Me.OpenArgs, ";")(0)
If UBound(Split(Me.OpenArgs, ";")) = 1 Then
Me.cboEntryNo = Split(Me.OpenArgs, ";")(1)
End If
End If
its working fine if i try to pass the text but i dont know how to pass the fields data and another form which is going to open after command button event have two 2 unbound combo boxes first is cboSelectAccount and second is cboEntryNo both are integer.
I dont know how to modify this to add the field controls instead of text to pass to another form on (on load event)
Any help will be appreciated.