batwings
Registered User.
- Local time
- Today, 22:42
- Joined
- Nov 4, 2007
- Messages
- 40
Can anyone please tell me how I can place a select case statement in a module and create a function and call it from an expr: field query expression in a select query?
I have a select query with an existing field [Responsibility] and I want to use that field to populate another field that will be called [EC].
The Select case should go something like this,
Select Case [Responsibility]
Case "1"
[EC] = "A"
Case "2"
[EC] = "B"
Case "3"
[EC] = "C"
Case "4"
[EC] = "D"
End Select
I’m not sure what to put in a module or how to call a function from the query..
I have a select query with an existing field [Responsibility] and I want to use that field to populate another field that will be called [EC].
The Select case should go something like this,
Select Case [Responsibility]
Case "1"
[EC] = "A"
Case "2"
[EC] = "B"
Case "3"
[EC] = "C"
Case "4"
[EC] = "D"
End Select
I’m not sure what to put in a module or how to call a function from the query..