I have two tables that I want to use to use a between query statement for.
The first table and example data:
Sequence =1
beginaccount = 100001
endaccount = 110160
The second table and sample data:
Account = 100001, 100002
I want to write a statement that says if the account is between the beginaccount and endaccount to return the applicable sequence number.
My query statement is:
ReportSequence: IIf([account] Between [beginaccount] And [endaccount],[sequence])
When I write this statement it only returns account 100001, but I want it to return accounts 100001 and 100002.
Any help would be appreciated. Thanks!
The first table and example data:
Sequence =1
beginaccount = 100001
endaccount = 110160
The second table and sample data:
Account = 100001, 100002
I want to write a statement that says if the account is between the beginaccount and endaccount to return the applicable sequence number.
My query statement is:
ReportSequence: IIf([account] Between [beginaccount] And [endaccount],[sequence])
When I write this statement it only returns account 100001, but I want it to return accounts 100001 and 100002.
Any help would be appreciated. Thanks!