Mansoor Ahmad
Registered User.
- Local time
- Today, 14:59
- Joined
- Jan 20, 2003
- Messages
- 140
Here is the statement. Please can you see where I am doing wrong.
DoCmd.OpenReport "R_Fuel parts summary monthwise", acViewPreview, , "[ANALYSIS DATE] = > #12/31/1999# " Or "[ANALYSIS DATE]Is Null" And [Parts type] = " #Fuel# "
OrderBy ([ANALYSIS DATE])
[ANALYSIS DATE] is a date field
[Parts type] is a text field
Want to filter the data by '>12/31/1999' on [ANALYSIS DATE] and
by text 'Fuel' in [Parts type] field
When I click on command button, access prompts as
'Microsoft cannot find the field 'i' referred to in your expression.'
I am not good in VB codes. I have tried it myself but as I do not have clear concept of using '," ,& and other notations so I could not fix it myself.
Thanks
DoCmd.OpenReport "R_Fuel parts summary monthwise", acViewPreview, , "[ANALYSIS DATE] = > #12/31/1999# " Or "[ANALYSIS DATE]Is Null" And [Parts type] = " #Fuel# "
OrderBy ([ANALYSIS DATE])
[ANALYSIS DATE] is a date field
[Parts type] is a text field
Want to filter the data by '>12/31/1999' on [ANALYSIS DATE] and
by text 'Fuel' in [Parts type] field
When I click on command button, access prompts as
'Microsoft cannot find the field 'i' referred to in your expression.'
I am not good in VB codes. I have tried it myself but as I do not have clear concept of using '," ,& and other notations so I could not fix it myself.
Thanks