ADIGA88
Member
- Local time
- Today, 10:05
- Joined
- Apr 5, 2020
- Messages
- 93
Hi guys
I have a problem and can't find a solution to it please if you could help.
I have a form that I use as a selector for records, I instantiate the form using the
I found out that the Me variable (inside frmVendorInvoicesSelector) is referring to two different form objects by using ObjPtr(Me) to check the memory address.
The following is debug output for ObjPtr Function:
the txtInvoiceNo_DblClick is an event handler inside the frmVendorInvoicesSelector form
I repeated the test with a new project and I didn't encounter an issue.
Does anyone know what may cause this issue or how to approach it to find a solution?
attached is the modules of the caller form and the selector form
I have a problem and can't find a solution to it please if you could help.
I have a form that I use as a selector for records, I instantiate the form using the
docmd.openform "frmVendorInvoicesSelector"
command and referring it by using forms collection forms("frmVendorInvoicesSelector")
. I found out that the Me variable (inside frmVendorInvoicesSelector) is referring to two different form objects by using ObjPtr(Me) to check the memory address.
The following is debug output for ObjPtr Function:
Code:
Me:Form_Load 2412068985136 (good)
Me:Form_Current 2412068985136 (good)
Transmittal:Forms:AddInvoice 2412068985136 (good) this is from the caller form ObjPtr(Forms("frmVendorInvoicesSelector"))
Me:Form_Current 2412068985136 (good)
Me:txtInvoiceNo_DblClick 2413677744752 (what?!)
the txtInvoiceNo_DblClick is an event handler inside the frmVendorInvoicesSelector form
I repeated the test with a new project and I didn't encounter an issue.
Does anyone know what may cause this issue or how to approach it to find a solution?
attached is the modules of the caller form and the selector form