funkytunaa
Technical User
I have a db with a few tables.
1/Client Details
2/PostCodePointValues
Etc.
What I need is to have a query that will return a value from the PostCodes dependant on what the Clients Post code is.
I have currently Opened a query with the following fields.
Client Details - [PostCode]
PostCodePointValues - [From]
PostCodePointValues - [To]
PostCodePointValues - [Points]
What I need to do is return the number of points if the PostCode falls inbetween PostCodes From and To.
I have done an iif statement (Below) but it is coming up with an error, any ideas would be appreciated.
PCPoints:iif([PostCode]>=[From],iif[PostCode]<=[TO],[Points],""),"")
Any direction at the moment is good direction because it will be steering me away from total brain failure.
Cheers!!!!!!
1/Client Details
2/PostCodePointValues
Etc.
What I need is to have a query that will return a value from the PostCodes dependant on what the Clients Post code is.
I have currently Opened a query with the following fields.
Client Details - [PostCode]
PostCodePointValues - [From]
PostCodePointValues - [To]
PostCodePointValues - [Points]
What I need to do is return the number of points if the PostCode falls inbetween PostCodes From and To.
I have done an iif statement (Below) but it is coming up with an error, any ideas would be appreciated.
PCPoints:iif([PostCode]>=[From],iif[PostCode]<=[TO],[Points],""),"")
Any direction at the moment is good direction because it will be steering me away from total brain failure.
Cheers!!!!!!