ted.martin
Registered User.
- Local time
- Today, 12:17
- Joined
- Sep 24, 2004
- Messages
- 743
I have some SQL code that refers to the field name PUB1Val.
I need to refer to this field in my SQL statement as variable and have been trying
..... AND (([Invoice Details].Fields(strdescription))>0) etc ; where strDescription = PUB1Val but without success.
When I use .... AND (([Invoice Details].PUB1Val)>0) the SQL code runs fine.
It is just that as there are 6 PUB*Val fields and I need to select the field I wish from a simple drop-down box of data.
Hope someone can shed some light. Thanks
I need to refer to this field in my SQL statement as variable and have been trying
..... AND (([Invoice Details].Fields(strdescription))>0) etc ; where strDescription = PUB1Val but without success.
When I use .... AND (([Invoice Details].PUB1Val)>0) the SQL code runs fine.
It is just that as there are 6 PUB*Val fields and I need to select the field I wish from a simple drop-down box of data.
Hope someone can shed some light. Thanks