solun
Programmer
- Apr 1, 1999
- 55
This seems like it should be so easy...
I've got a form, 1Loan, with an LoanID field. I want to use a command button on 1Loan to open a form, sysApps, that will only display the multiple records from a different table that have the same Loan ID.
This code gives me an error on the "sysApps!loanid=lid" line: Object required. Without that line, i get nothing.
What am I doing wrong?
I've got a form, 1Loan, with an LoanID field. I want to use a command button on 1Loan to open a form, sysApps, that will only display the multiple records from a different table that have the same Loan ID.
This code gives me an error on the "sysApps!loanid=lid" line: Object required. Without that line, i get nothing.
What am I doing wrong?
Code:
Dim stDocName As String
Dim stLinkCriteria As String
Dim lid As Double
lid = Me!LoanID
stDocName = "sysApps"
stLinkCriteria = "[LoanID]=" & lid
DoCmd.OpenForm stDocName, , , stLinkCriteria
sysapps!LoanID = lid