I'm trying a print report command that first looks to see if a particular document has been printed. This is kept in one of the tables if a Yes/No field called "Print1". I'm trying to tell my If-Else Statement to look to here and if it is Yes (-1) then display a Yes/No Message Box.
Everytime I try and run it, it gives me an "Object Required" error message. I don't know what this means. My form is not bound because the Reports are run off queries that look to the drop-down control on my page which has a bound column 1 = LoanID. I want my If-Else to look to this control, take the LoanID that I have currently selected and look to see if Print1 = -1. Here's what I've been working with:
If tbl_LoanInfo.Print1 = -1 And MsgBox("This has already been printed.", vbYesNo, "Print Again?") = vbYes Then
Any help is greatly appreciated. Thank you.
Everytime I try and run it, it gives me an "Object Required" error message. I don't know what this means. My form is not bound because the Reports are run off queries that look to the drop-down control on my page which has a bound column 1 = LoanID. I want my If-Else to look to this control, take the LoanID that I have currently selected and look to see if Print1 = -1. Here's what I've been working with:
If tbl_LoanInfo.Print1 = -1 And MsgBox("This has already been printed.", vbYesNo, "Print Again?") = vbYes Then
Any help is greatly appreciated. Thank you.