Care to share what was the problem and how you solved it? It's just for incase anyone looking for the same problem will get the answer
now that leaves me with two more problems. i use the following code to keepa check that the data entered is numeric
Private Sub Text2_KeyPress(KeyAscii As Integer)
If Not ((KeyAscii > 47 And KeyAscii < 58) Or (KeyAscii = 127 Or KeyAscii = 8)) Then MsgBox "please enter valid characters"
End Sub
it works just fine but after displaying the msgbox, it still enters the value
LOL..!! I used to code in VB6 around 3 years ago. I guess, Keypress event passes something like KeyPressEvent Object or something like that
So it'll be much like e.KeyCode > 47 and so on... And to actually stop that e.Keypress = false.
But I'm not sure whether this exists in VB6.
If not, you can use it as function like if KeyAscii is within your range return true else return false and based on that clear the Textbox by Textbox.Text = "" (i.e. making it blank)
the second problem :-
there are 4 radiobuttons on one form 2 for gender and 2 for some other **** that i forgot (maybe marital status) but while the program is running, i can only select one of them. can you tell me the code to be able to select two of them (1 for each)
and also how to get the input from those radio buttons to the database
thnx.....
Yeah by default, all the Radio Buttons in a form is treated as single group. You can set Group Properties in Radio Buttons, that will do. Otherwise you can use Panel and then place Radio Buttons to that panel to group them.
Mean insert a panel from toolbox and place Male / Female Radio Buttons on that and insert another panel and place Married / Unmarried radio buttons on that.
Otherwise check if Group Property is there (It's there in VB.NET I guess, not sure about VB6), if it's present them set Gender as group to Male / Female RB and Martial_Status on Married / Unmarried RB