Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

OPERAND help

Status
Not open for further replies.

lashwarj

IS-IT--Management
Nov 1, 2000
1,067
US
I am recieving an error saying missing operand. It is in the portion of my code where I do a select * from database
 
Rick,

I was just doing it for debug readability. Maybe something in the macro expansion is going on that I don't know about since it is working with just one item.

lashwarj,
Try it without adding the ';' and 'CRLF'. Just do it like this:

IF ThisForm.Donor_Check.Value = 1
IF !EMPTY(criteria)
criteria = criteria + " AND "
ENDIF
criteria = criteria + ;
" lcdonor $(upper(historian.donor)) "
ENDIF

IF ThisForm.photographer_Check.Value = 1
IF !EMPTY(criteria)
criteria = criteria + " AND "
ENDIF
criteria = criteria + ;
" lcphotographer $(UPPER(historian.photo_take)) "
ENDIF

Dave S.
 
All set folks I appreciate all of your assistance. you all rule.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top