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!

Will IF THEN statement work

Status
Not open for further replies.

wheels27

MIS
Aug 26, 2002
30
US
what i need to do is when the description says computer A
i ned to put this date when the description says Computer b put this date. also i will have multiple descriptions for
each date so will i use an or statement for the descriptions while i use an if then for the date matching

thanks
 
I would use either a select case or an immediate if:

Dim strCompName as String

Select Case strCompName
Case A
Your Date #1
Case B
Your Date #2
End Select

...in a query you can use IIf()

IIf([CompName] = "A", YourDate#1, YourDate#2)

Try that!




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top