How do I create a table using this form?

dgrosen

Board Regular
Joined
May 3, 2003
Messages
110
Hi masters of the Access :pray: I need serious help. :rolleyes:
This is the puzzle!!!
I have a form that has 7 fields: NAME and 6 text boxes.
The 6 text boxes referes to a small 3x2 grid. I have to input an ID number on each textbox.
The form looks something like this: :eek:
NAME:________
--A-B-C
1[ ] [ ] [ ]
2[ ] [ ] [ ] <----------------Textboxes!

I will like to create a table using this form. For example, if I type the number "123" in the location A1 and "111" in A2 and the name of the project is "NEW", I will like the table to look like this:

NAME ID COLUMN ROW
NEW....123..... A.......1
NEW....111......A.......2

Thanks a lot
DAN (y)
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
I might be missing something, but i have not heard of this approach in Access. So I am curious if i am wrong, but generally you would create a table and then use a form to enter data to the table.

create a new table and in Design your fields are created as such:

Field Name **DataType**

NameID **Auto number Primary Key**
Name **Text>**
ID **Number**
Column **Text**
Row **Text**

Then with the table created You can create a form that is based on the table, the fields will be windows into the table so to speak.
 
Upvote 0
I can't imagine any other approach than to manage the data with code (VBA). Here you would use DAO or ADO code and database objects like Recordset to create multiple records by looping through the form controls looking for nonempty fields. Is that too hairy or do you want to look at that?

By the way, nice job posing the question. I skip over more posts than I answer simply because of [non]clarity in presenting the problem :coffee:
 
Upvote 0
Thanks a lot for clarifying the point. Any suggestions or ideas to achieve this without getting into the code nightmare?
Is there any other easy solution?
 
Upvote 0

Forum statistics

Threads
1,221,905
Messages
6,162,772
Members
451,786
Latest member
CALEB23

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top