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!

Missing 2 varchar Problem 1

Status
Not open for further replies.

pgtek

Programmer
Joined
Sep 28, 2001
Messages
1,180
Location
CA
Hi
i have a field in my table definied as varchar DOB
like this 020203
i have some data that the field was not completed fill
like this 0202 missing the last 2 varchar

How can i create a formula that would check if the field is not completely fill blank all the other field and display a complet blank for this entry field?

Cheer

pg
 
Something is lost in transalation here, but to determine if it is complete, use the len() function, as in:

len({table.field})

So a formula to blank the bad ones might be:

if len({table.field}) < 6 then
&quot;&quot;
else
{table.field}

-k
 
hi
thank you my head went blank
it was so simple :-)

tk

pg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top