Ross I think this should work:
Combine your table name and first col name together in a string. I'm not sure the generic "col1" would work. You can use the ColumnInfo func to get the name of col1 cColName = ColumnInfo("YourTable", "Col1", COL_INFO_NAME) then... cFullColName = "YourTable" + "." + cColName the use this in the if statement... If cFullColName = 0 HTH Terry --------------------------------------------------------------------- List hosting provided by Directions Magazine | www.directionsmag.com | To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Message number: 14634