You can use VarType() to check for the existence and if it doesn't exist, populate it with nil (make it exist, but make it blank):
If VarType(D("ADJ")) = vbError Then
D("ADJ") = ""
STEP = "BACKOUT"
ElseIf D("ADJ") = "" Then
STEP = "BACKOUT"
EndIf
Exit Sub
HTH
Thank you,
Mitch Lawrence
Lead Applications Analyst
Technical Support - NPR/Automation
CHRISTUS Information Management
*: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
Send a "thank you
<http://intranet.christushealth.org/spiritBuck/Default.asp> " to
someone!
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED]
Sent: Friday, October 31, 2008 2:07 PM
To: [email protected]
Subject: [talkbws] Variable doesn't exist
I have some rules that say if a data station value is blank go to
another step like this...
If D("ADJ") = "" then
STEP = "BACKOUT"
END IF
But if for whatever reason D("ADJ") isn't present it will break. How do
write a rule that says if a data station value doesn't exist go to
another step?
Thanks,
Reese
Reese E. Walker
Financial Systems Analyst
Phoebe Putney Memorial Hospital
Albany, GA. 31702
Phone: (229) 312-4259
Pager: (229) 431-7658
Fax: (229) 312-4316
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [EMAIL PROTECTED]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx
________________________________
Disclaimer:
The HIPAA Final Privacy Rule requires covered entities to safeguard
certain Protected Health Information (PHI) related to a person's
healthcare. Information being faxed to you may include PHI after
appropriate authorization from the patient or under circumstances
that do not require patient authorization. You, the recipient, are
obligated to maintain PHI in a safe and secure manner. You may not
re-disclose without additional patient consent or as required by
law. Unauthorized re-disclosure or failure to safeguard PHI could
subject you to penalties described in federal (HIPAA) and state
law. If you the reader of this message are not the intended
recipient, or the employee or agent responsible to deliver it to
the intended recipient, please notify us immediately and destroy
the related message.
---
To post a message to this list, send mail to: [email protected]
You are currently subscribed as: [EMAIL PROTECTED]
Unsubscribe in the customer center on our website:
http://www.bostonworkstation.com/customer_center/virtual_user_group_talk
.aspx
<<image001.jpg>>
