I have a main company form that has all company information i.e. address, phone, fax, contacts etc.
From there I want the user to be able to click the "FAX" or "Transmittal" button and have that open the associated form with the current company as the receiver of the fax or transmittal.
However I keep getting a "Type Mismatch" error no matter How I work this.
The fax form "Fax Receiver" field is set to be a lookup of the Comapny table Company ID. They both access the same piece of information and I do not understand why I keep getting mismatch error PLEASE HELP!
Following is the code I have:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Fax"
stLinkCriteria = "Forms![Fax]![ID] =" & Me!ID
DoCmd.OpenForm stDocName, , , acFormAdd, stLinkCriteria
Thanks MAP
From there I want the user to be able to click the "FAX" or "Transmittal" button and have that open the associated form with the current company as the receiver of the fax or transmittal.
However I keep getting a "Type Mismatch" error no matter How I work this.
The fax form "Fax Receiver" field is set to be a lookup of the Comapny table Company ID. They both access the same piece of information and I do not understand why I keep getting mismatch error PLEASE HELP!
Following is the code I have:
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "Fax"
stLinkCriteria = "Forms![Fax]![ID] =" & Me!ID
DoCmd.OpenForm stDocName, , , acFormAdd, stLinkCriteria
Thanks MAP