Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 24th, 2005, 05:58 AM
Authorized User
 
Join Date: Mar 2005
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Default 'CreateField' issue

I have to create about one hundred tables , each of them with at least 230 fields.The field names are "very incremental" (i mean a000_01, a000_02, a000_03 etc), so i prefer to generate field names using Excel facilities. After that, i use some code like <Set Fd = Td.CreateField("a000_01", dbBoolean, 1)> to generate the tables.
The major problem is that I don't know how to set the Format of these fields. The generated tables have Yes/No at DataType but Format is left blank, which causes me a lot of errors. But that's not all: if i want to manualy set Format to Yes/No, i receive a warning like 'Too many fields defined' so i have to "compact and repair database" after modifying each 20-30 fields. Any help would be apreciated! Thanks!

 
Old July 30th, 2005, 02:31 AM
Friend of Wrox
 
Join Date: Jul 2005
Posts: 150
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The design you are trying to use is really not correct. It violates the "rules" of normalization.

Quote:
quote:
...field names are "very incremental"...
You should put this data into a child table the only has the fields, Primary Key, Rec Type, a000.

Then you can have as many records as need.

check out:

http://msdn.microsoft.com/library/de...cesstables.asp

HTH...




Boyd
Access Based Accounting/Business Solutions developer.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Com issue(really urgent) balesh.mind ASP.NET 2.0 Professional 2 May 14th, 2008 03:35 AM
Drop Down Issue SKhna ASP.NET 2.0 Basics 1 March 19th, 2008 06:29 AM
Issue with DTD tgopal CSS Cascading Style Sheets 2 September 20th, 2006 04:15 AM
Another issue islandtiu BOOK: Beginning ASP 3.0 1 February 14th, 2005 11:49 AM
Sub Report Issue bjoneskc01 BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 1 January 21st, 2005 11:26 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.