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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Silly invalid use of NULL question 1

Status
Not open for further replies.

mdweezer

Technical User
Jun 15, 2004
56
US
I've got a form with a bunch of fields, when a command button is pushed i'm assigning those fields to a bunch of variables which will then get passed as criteria for a report. However I'd like to have it so not all fields need information, whichever fields have data in them will be the only ones use for the where clauses in the report. My code is as follows
Code:
TitleValue = Title.Value
OriginatorValue = CBO_ORIGIN.Value
StatusValue = Status_Code.Value
AssignedByValue = cmb_AssignedBy.Value
AssignedTo = cmb_AssignedTo.Value
PriorityValue = Frame89.Value
GenerationDateValue = Generation_Date.Value
DueDateValue = Text213.Value
CompletedDateValue = Date_Closed.Value
AssignedDateValue = Text215.Value
DescriptionValue = Description.Value
CommentsValue = Description.Value
DispositionValue = Disposition.Value

Impressive, I know ;)

Anyway, if any of those fields is left blank I get a invalid use of null error. Whats the easiest way to work around that error? Thanks
 
Worked like a charm, I knew there had to be a easy fix!

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top