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

Wildcard variable for fields in macro condition

Status
Not open for further replies.

mulligh

Technical User
May 8, 2001
97
US
I have fields named size1 size2 size3 ... through size20. I want to create a condition in a macro that checks to see if size1 - size20 fields are null. Is there a way to refer to all 20 fields in one statement (other than OR-ing them together :) )

Thanks for the help.
 
hi m8

you will struggle to do this easiley in a macro cos they are not really disigned to do anything complicated.

Your best bet would be to convert the macro into a VB module (this is easy look at the helP) and then use the VB code to cycle through each of the fields to check for nulls

In the vb code you will need to create an array of the fields which is basically a virtual list and then use a for loop to cycle through each line.

if you need help with doing this let me know and i will see what i can do

thx
joe


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top