Visual Basic/vb 6.0 blood group form
I have created a option button form for blood grup in which i will let to choose user blood group from option buttons A,B,AB and O. so i want to then connect that info to the access database which i have connected through module and save that info of blood group to that name ! so can you give me coding for option button?? n plz tell me how should i connect that info?? beacause my other forms have already connected to databse each form having separate table so may be i will create separate table for this blood form too...
As far as I know option buttons will not work in a manner like you want to do.
You will need to write code to do what you want. You will need either if else statements or case statements both will work equally well.
So the first couple could be something like:
if tableobject!bloodtype = "A" then
OptionButtonA = True
Elseif tableobject!bloodtype ="AB" then
OptionButtonAB = True
finally you would need a fail safe for situations where the blood type is unknown for example
OptionButtonUnknown = true
tableobject refers to your actual database/table
The ! tells VB to look at a specific field
bloodtype refers to the field name
With out knowing the specifics of your program or your objective it is hard to give you specific advise but this should get you started in the right direction.