vbalearner
07-06-2007, 04:50 AM
Hey guys,
I'm a newbie(to the forum and to this programming...) so thanks for any help you can provide me.
Basically, I have a small database set up. I have a few tables in the database. I have one form on which I have set up some checkboxes. I also have a "go" button(command button) on the form.
I have one empty table(called codes) set up in the database as well. What I'm trying to do:
When the go button is pressed, I would like to "look at" the check boxes and depending on which ones are checked, add rows to the empty table(called codes). Basically the table only has one column, called value. It is in the database called sample(which is saved on my desktop, if it matters).
So if when the go button is clicked, the first 3 checkboxes are checked, I would like it to add value 2, 4, 7(or whatever corresponding value I assign to that checkbox basically).
Hopefully that makes sense. I'm not very familiar with the syntax to be used, thats where I think I'm running into trouble. I've been looking at all of this code online but it always seems like they are making new databases or new tables, but I want something to go into an existing table in an existing database...
I'm a newbie(to the forum and to this programming...) so thanks for any help you can provide me.
Basically, I have a small database set up. I have a few tables in the database. I have one form on which I have set up some checkboxes. I also have a "go" button(command button) on the form.
I have one empty table(called codes) set up in the database as well. What I'm trying to do:
When the go button is pressed, I would like to "look at" the check boxes and depending on which ones are checked, add rows to the empty table(called codes). Basically the table only has one column, called value. It is in the database called sample(which is saved on my desktop, if it matters).
So if when the go button is clicked, the first 3 checkboxes are checked, I would like it to add value 2, 4, 7(or whatever corresponding value I assign to that checkbox basically).
Hopefully that makes sense. I'm not very familiar with the syntax to be used, thats where I think I'm running into trouble. I've been looking at all of this code online but it always seems like they are making new databases or new tables, but I want something to go into an existing table in an existing database...