I've got a very weird and confusing bug here. Stripping it down to the core problem I've isolated, I have a database accessible by several users, including myself. There is a form containing several records, and one of the fields on the form is the record ID. I build a query which reports the value of the ID field for the current record (i.e. a column of form
Exp1: Forms![Form_Name]![Field_Name]
with a PARAMETER line defining Forms![Form_Name]![Field_Name] as a Long Integer
).
If I open the database and run the query, the query returns the ID of the current record on the form.
If my users open the database and run the query, the query returns a 0.
WTF! I've confirmed this with my own eyes and still can't believe it.
I'll note we're logging into the same machine (it's a virtual server arrangement via Citrix), so all of the Windows and Office infrastructure is identical, and there is no Access security in place. The only thing I can figure is that there are some sort of user-specific Windows security settings that are being loaded that prevent the form field references from being parsed, but I have no idea how to pin down the problem. Any suggestions of other things to try?
Exp1: Forms![Form_Name]![Field_Name]
with a PARAMETER line defining Forms![Form_Name]![Field_Name] as a Long Integer
).
If I open the database and run the query, the query returns the ID of the current record on the form.
If my users open the database and run the query, the query returns a 0.
WTF! I've confirmed this with my own eyes and still can't believe it.
I'll note we're logging into the same machine (it's a virtual server arrangement via Citrix), so all of the Windows and Office infrastructure is identical, and there is no Access security in place. The only thing I can figure is that there are some sort of user-specific Windows security settings that are being loaded that prevent the form field references from being parsed, but I have no idea how to pin down the problem. Any suggestions of other things to try?