Dec 4, 2008 #1 ub1234567 Programmer Dec 4, 2008 69 US Hi, i have a ssn number as parameter in reports. ex. 203671234 that user prompts. i need to display ssn number in formate 203-67-1234. in report. i used left and right function but i am confused regarding middle number ? any help appriciated
Hi, i have a ssn number as parameter in reports. ex. 203671234 that user prompts. i need to display ssn number in formate 203-67-1234. in report. i used left and right function but i am confused regarding middle number ? any help appriciated
Dec 10, 2008 #2 dboehne Programmer Dec 10, 2008 5 US ssn = substr(ssn,1,3) || '-' || substr(ssn,4,2) || '-' || substr(ssn,6,9) Upvote 0 Downvote
Dec 30, 2008 Thread starter #3 ub1234567 Programmer Dec 4, 2008 69 US group 1 emp1 cd emp1 ef emp1 gh i want to concatanet (cd ef gh) and display into group footer for each group of emp i want to do this. so i am geting in detail section that is, emp1 cd emp1 cd ef emp1 cd ef gh so i want to display whole string cd ef gh in group footer. i made formula and i am puting that formula in group footer. but it repeated last record means it gives me cd ef gh gh in group footer. for each group i m reset my string in group header. still it given me this problem pls any one give me suggestion. thanks Upvote 0 Downvote
group 1 emp1 cd emp1 ef emp1 gh i want to concatanet (cd ef gh) and display into group footer for each group of emp i want to do this. so i am geting in detail section that is, emp1 cd emp1 cd ef emp1 cd ef gh so i want to display whole string cd ef gh in group footer. i made formula and i am puting that formula in group footer. but it repeated last record means it gives me cd ef gh gh in group footer. for each group i m reset my string in group header. still it given me this problem pls any one give me suggestion. thanks
Dec 31, 2008 #4 milton747 Programmer Apr 21, 2005 133 US Dim ssn As String Dim s As String ssn = "123456789" s = Mid$(ssn,1,3) + "-" s = s + Mid$(ssn,4,2) + "-" s = s + Mid$(ssn,6,4) showFactoryStatus(s) Upvote 0 Downvote
Dim ssn As String Dim s As String ssn = "123456789" s = Mid$(ssn,1,3) + "-" s = s + Mid$(ssn,4,2) + "-" s = s + Mid$(ssn,6,4) showFactoryStatus(s)
Jan 28, 2009 #5 DogCityGal Programmer Jan 27, 2009 9 CH try: Format$( ssn, "000-00-0000" ) where ssn is the variable containing the social security number Upvote 0 Downvote