G
Guest
I need help with syntax. (I am working with legacy data in static tables,
so my options are limited).
I have an open form "frmA" with a field "Case". I want my report's record
source dependent on the first 4 characters of "Case". I have tbl2000,
tbl2001 and tbl2002 as possible record sources. I believe I need to add code
to the Report_Open event.
In psuedo code, this is what I want to do:
If frmA.Case is like "2000*" Then
Me.Recordsource = tbl2000
else
If frmA.Case is like "2001*" Then
Me.Recordsource = tbl2001
else Me.Recordsource = tbl2002
End If
End If
Thank you for your help!!
so my options are limited).
I have an open form "frmA" with a field "Case". I want my report's record
source dependent on the first 4 characters of "Case". I have tbl2000,
tbl2001 and tbl2002 as possible record sources. I believe I need to add code
to the Report_Open event.
In psuedo code, this is what I want to do:
If frmA.Case is like "2000*" Then
Me.Recordsource = tbl2000
else
If frmA.Case is like "2001*" Then
Me.Recordsource = tbl2001
else Me.Recordsource = tbl2002
End If
End If
Thank you for your help!!