wesleylamb
Technical User
Just wanted to know if there was an easier way of
selecting records in a parameter query with a ref no that has leading zeros. So the parameter can accept 000035356
or 35356.
What I have done is listed below
In Record Select Formula Editor I have this:
{Contact.ref_num} like "00000000" +right({?Ref No},1) or
{Contact.ref_num} like "0000000" +right({?Ref No},2) or
{Contact.ref_num} like "000000" +right({?Ref No},3) or
{Contact.ref_num} like "00000" +right({?Ref No},4) or
{Contact.ref_num} like "0000" +right({?Ref No},5) or
{Contact.ref_num} like "000" +right({?Ref No},6) or
{Contact.ref_num} like "00" +right({?Ref No},7) or
{Contact.ref_num} like "0" +right({?Ref No},8)or
{Contact.ref_num} like {?Ref No}
Thanks
cee cee
selecting records in a parameter query with a ref no that has leading zeros. So the parameter can accept 000035356
or 35356.
What I have done is listed below
In Record Select Formula Editor I have this:
{Contact.ref_num} like "00000000" +right({?Ref No},1) or
{Contact.ref_num} like "0000000" +right({?Ref No},2) or
{Contact.ref_num} like "000000" +right({?Ref No},3) or
{Contact.ref_num} like "00000" +right({?Ref No},4) or
{Contact.ref_num} like "0000" +right({?Ref No},5) or
{Contact.ref_num} like "000" +right({?Ref No},6) or
{Contact.ref_num} like "00" +right({?Ref No},7) or
{Contact.ref_num} like "0" +right({?Ref No},8)or
{Contact.ref_num} like {?Ref No}
Thanks
cee cee