Sign In | Register Now About Bytes | Help | Site Map
Connecting Tech Pros Worldwide

VS 2005 checkbox with MS Access 2000 database

Question posted by: godhulirbalaka (Newbie) on July 3rd, 2008 12:04 PM
Dear sir,

I am making an application in visual studio 2005. In a form i have two checkbox and in access database i have two field which datatype is Yes/No. That means there is a checkbox shows it checked/unchecked

Now i want if i check in the checkbox in the form and save it then in the database field that field will checked or unchecked accordingly.

and when i will recall the data then according to the datafield the checkbox will checked or unchecked according to the database.

How do i set the command

Please give me both command one is INSERT/UPDATE command, Another is recalling command


my other command is like
str="INSERT INTO UserTable(ID, Transaction, Report) VALUES('" & me.txt_ID.text & "', '" & me.chk_transaction.checked & "',...................)

Please correct me
kenobewan's Avatar
kenobewan
Moderator
4,551 Posts
July 3rd, 2008
12:56 PM
#2

Re: VS 2005 checkbox with MS Access 2000 database
Try using a dataadapter. Is the table id choosen by the user through entering a number in a textbox?

Reply
godhulirbalaka's Avatar
godhulirbalaka
Newbie
26 Posts
July 4th, 2008
06:17 AM
#3

Re: VS 2005 checkbox with MS Access 2000 database
Quote:
Try using a dataadapter. Is the table id choosen by the user through entering a number in a textbox?



NO table ID is not a factor. I just want if i checked a checkbox in the form and save it then in database the linked filed which datatype is yes/no that will checked or unchecked accordingly

Reply
kenobewan's Avatar
kenobewan
Moderator
4,551 Posts
July 4th, 2008
12:44 PM
#4

Re: VS 2005 checkbox with MS Access 2000 database
Quote:
NO table ID is not a factor. I just want if i checked a checkbox in the form and save it then in database the linked filed which datatype is yes/no that will checked or unchecked accordingly

All you need is one event and two functions. What events are you planning to use? Apart from an insert statement what have you done so far?

Reply
Reply
Not the answer you were looking for? Post your question . . .
189,891 Experts ready to help you find a solution.
Sign up for a free account, or Login (if you're already a member).

Latest Articles: Read & Comment
Top .NET Forum Contributors