473,387 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Code to create table with increasing field numbers

I've got myself into a bind here. Any help would be a life saver.
I created a form with 644 text boxes that serve as "days" for a
schedule. Each text box has a code which is populated with an X or /.

My problem is I did them all unbound. Is there a way to use code to
either create a new table or append my current table that creates the
unbound text fields starting with text0 and increasing by 1 until it
reaches 644?

Thanks in advance. I am not looking forward to creating a table with
644 text fields.
Dave

Nov 13 '05 #1
5 1572
Indeed you'll find it very taxing to create 644 fields in a table - the
limit is 255.

The unbound nature of the controls on your form can be to your advantage
though - depending on the naming.
Creating a table with perhaps just a few fields and consider having the
records as the days.
You'll then just need to loop through the recordset filling in the unbound
textboxes as required.

Without knowing what your exact fields are for I can't speculate about the
specifics - but the concept will have been described plentifully before too.
(And instead of generating table fields you'll perhaps be having to rename
your form fields)

hth (a bit)
"DaveA" <ny******@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
I've got myself into a bind here. Any help would be a life saver.
I created a form with 644 text boxes that serve as "days" for a
schedule. Each text box has a code which is populated with an X or /.

My problem is I did them all unbound. Is there a way to use code to
either create a new table or append my current table that creates the
unbound text fields starting with text0 and increasing by 1 until it
reaches 644?

Thanks in advance. I am not looking forward to creating a table with
644 text fields.
Dave

Nov 13 '05 #2
On 7 Jun 2005 17:34:48 -0700, "DaveA" <ny******@yahoo.com> wrote:

You always want to design the database before implementing the forms.
Certainly for such important functionality as you are describing.

It is good to be aware of Access' limitations before you design the
database.

Your 644 fields (if that were even possible) present a clear example
of a database design no-no: repeating groups.
Rather than a table with:
CalendarDate datetime
Period1Code text(1)
Period2Code text(1)
Period3Code text(1)
Period4Code text(1)
etc.,
better do something like:
CalendarDate datetime
Period integer
Code text(1)
A database is not a spreadsheet.

Perhaps it makes more sense to implement the schedule in Outlook: it
already implements many features found in a calendar application.

Another suggestion: hire professional help, at least for the database
design.

-Tom.
I've got myself into a bind here. Any help would be a life saver.
I created a form with 644 text boxes that serve as "days" for a
schedule. Each text box has a code which is populated with an X or /.

My problem is I did them all unbound. Is there a way to use code to
either create a new table or append my current table that creates the
unbound text fields starting with text0 and increasing by 1 until it
reaches 644?

Thanks in advance. I am not looking forward to creating a table with
644 text fields.
Dave


Nov 13 '05 #3
Per DaveA:
Thanks in advance. I am not looking forward to creating a table with
644 text fields.


My gut says there's a database design issue here.
--
PeteCresswell
Nov 13 '05 #4
I checked and it's 286 fields, for some reason is skipped a lot of
numbers.

Either way it's not going to work. I will explore the spreadsheet
option.

Thanks for the info

Dave

Nov 13 '05 #5
Per DaveA:
I checked and it's 286 fields, for some reason is skipped a lot of
numbers.

Either way it's not going to work. I will explore the spreadsheet
option.


I'd bet that if you layed out the architecture here, one or more people would
explain why the DB doesn't really need 286 fields in a single table.

Having cleaned up (i.e. rewritten as DB apps) a number of projects that began
life in Excel; I get a bad feeling when somebody talks about using Excel for
what is really a DB application.
--
PeteCresswell
Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: binger | last post by:
Okay, Superbowl is only a few days away, but I thought it would be cool to set up an online registration for a football squares pool. My thoughts are to have people go into anywhere on the 10x10...
53
by: Cardman | last post by:
Greetings, I am trying to solve a problem that has been inflicting my self created Order Forms for a long time, where the problem is that as I cannot reproduce this error myself, then it is...
3
by: Peter Phelps | last post by:
My problem is as follows: I need automatically iterate through a single field in a table and use the values in the field to create an in-statement. Currently, the character limitation in the...
3
by: Iain Miller | last post by:
Can anybody help me with some Access 2000 code? I don't do a lot of coding in Access & so every time I come back to do something I pretty much have to relearn the syntax from scratch so this is...
5
by: Sean Byrne | last post by:
We have a Microsoft Access 2000 database consisting of 20 tables covering 20 different events. In each table, there are 3 Team members, a date of the event and several unique fields for the event,...
8
by: jquest | last post by:
Hi Again; I have had help from this group before and want to thank everyone, especially PCDatasheet. My database includes a field called HomePhone, it uses the (xxx)xxx-xxx format to include...
18
by: Dixie | last post by:
Can I set the Format property in a date/time field in code? Can I set the Input Mask in a date/time field in code? Can I set the Format of a Yes/No field to Checkbox in code? I am working on...
10
by: Dixie | last post by:
I need to delete some relationships in code. How do I know what the names of those relationships are?
1
by: sanju4kk | last post by:
I am attempting to create a module that I can call to create a new field in my temp table that will be an autonumber, and then assigned that new field as the primary key. I have been search high and...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.