jt643
Technical User
- Jun 17, 2003
- 144
I have been working on an issue in thread705-1130455.
It now appears that the issue is not with the VB or References, but rather in my queries. In the VB, I define:
Dim UserID As String
UserID = Environ("USERNAME")
I then run queries that also have criteria of:
WHERE (((SelectionsTemp.UserID)=Environ("USERNAME")))
It seems to consistently be blowing up whenever I use a report or try to open a form that calls a query with similar criteria.
Again, it seems to be working fine on local machines, but on the Remote machine, it keeps giving me the error.
Does anyone have any ideas?
I need to keep the criteria as is in a couple situations because my queries join several tables, and I need to filter based on the UserID.
It now appears that the issue is not with the VB or References, but rather in my queries. In the VB, I define:
Dim UserID As String
UserID = Environ("USERNAME")
I then run queries that also have criteria of:
WHERE (((SelectionsTemp.UserID)=Environ("USERNAME")))
It seems to consistently be blowing up whenever I use a report or try to open a form that calls a query with similar criteria.
Again, it seems to be working fine on local machines, but on the Remote machine, it keeps giving me the error.
Does anyone have any ideas?
I need to keep the criteria as is in a couple situations because my queries join several tables, and I need to filter based on the UserID.