Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Need help with code (http://www.go4expert.com/forums/help-code-t17527/)

jcamden 15May2009 01:33

Need help with code
 
I am currently using a program called Speedy Schedule that allows us to book and keep track of patients in the office. Currently, the form requires the patients full SSN, we want it to only require the last 4 digits of the SSN and then be able to provide a list of patients that match those digits when doing a search. I would need to know what the correct syntax for that code might be. Currently our coding is as follows: Private Sub txtSSN_LostFocus() X = Right(txtSSN.Text, 5) v = Left(X, 1) If v "-" Then Dim sTemp As String sTemp = "" sStrIn = txtSSN.Text sStrIn = sStrIn & String$(9, "0") If sStrIn String$(9, "0") Then sStrIn = Left$(sStrIn, 9) sTemp = Left$(sStrIn, 3) & "-" & Mid$(sStrIn, 4, 2) & "-" & Right$(sStrIn, 4) End If txtSSN.Text = sTemp End If End Sub please Help!!!!!!

SaswatPadhi 15May2009 07:18

Re: Need help with code
 
Don't you get this : PLEASE POST YOUR CODE INSIDE CODE-BLOCKS. :angry:

shabbir 15May2009 09:57

Re: Need help with code
 
Duplicate of Need Help With VB,. Thread closed.


All times are GMT +5.5. The time now is 00:30.