johannaellamay
Registered User.
- Local time
- Tomorrow, 04:29
- Joined
- Jul 19, 2014
- Messages
- 190
I have already made this work a lot of times but for some reason, there seems to be a problem in one of my buttons.
So I have a command button that opens a report.
In one of my reports, this macro works:
However, in another command button that should open another report, the code below does not seem to work:
It just keeps giving me errors saying that there's a mismatch, etc. The field in my report that holds Employee ID is named echEmployeeID. If I write this code:
it sort of works, but Access asks me to enter parameter value first before executing the where condition. I don't understand why. I already tried to change [echEmployeeID] to [eEmployeeID] both in the source table, and the report but it just doesn't work. Help please. :banghead:
So I have a command button that opens a report.
In one of my reports, this macro works:
Code:
="[eEmployeeID]=" & [eEmployeeID]
However, in another command button that should open another report, the code below does not seem to work:
Code:
="[echEmployeeID]=" & [eEmployeeID]
It just keeps giving me errors saying that there's a mismatch, etc. The field in my report that holds Employee ID is named echEmployeeID. If I write this code:
Code:
="[echEmployeeID]=" & "[eEmployeeID]"
it sort of works, but Access asks me to enter parameter value first before executing the where condition. I don't understand why. I already tried to change [echEmployeeID] to [eEmployeeID] both in the source table, and the report but it just doesn't work. Help please. :banghead:
Last edited: