Creating tables dynamically

mikeymay

Well-known Member
Joined
Jan 17, 2006
Messages
1,645
Office Version
  1. 365
Platform
  1. Windows
I need to create several tables that contain 30+ fields, each of which will have varying field settings (decimal places, text, dates, etc) and rather than manually creating each field, choosing its settings, labelling and so on, can I use some VBA in either Excel or Access to create them dynamically and quickly?

TIA
 
To that good info I'll add that people who come to Access from Excel usually have a way of thinking that some is oft described with phrases like "Excel brain". They say they are quire adept at Excel as if it was an asset when in fact it is most often a liability. In this case it's still possible that each of those tables having "unique" fields does not guarantee the design will be correct. My suggestion would be to review normalization at least. Here's a post with that and more
 
Upvote 0

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
that some is oft described
This is what happens when you change the way of expressing a point but miss parts in the edit. 😖
It should have been "that sometimes is described with". Wish we had more than 10 minutes to edit!
 
Upvote 0
mickeymay,
It may be helpful to you and readers if you could identify your tables and relationships before getting too deeply into physical database. Most error are easier to fix at design time. A model of your proposed application can serve many purposes. Here's a sample of the sort of info


ShopSuppliesDraftModel.PNG
 
Upvote 0

Forum statistics

Threads
1,224,821
Messages
6,181,163
Members
453,021
Latest member
Justyna P

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