Solved

VB to Excel,   Error: too many fields defined.

Posted on 2006-07-20
2
229 Views
Last Modified: 2008-01-09
Hi

How can we resolve this vb error: too many fields defined. The database is an excel file. It works if I create 1 field.

thanks.



strRequest = "create table [pattern$] ([DateTime] time, " & _
" [SunPat] char(10),[MonPat] char(10))"

cn.Execute strRequest
0
Comment
Question by:RyanBank
  • 2
2 Comments
 
LVL 20

Accepted Solution

by:
alainbryden earned 500 total points
ID: 17145825
Could you explain somewhat further what you're trying to accomplish. Do you mean you can run the code once and it works but the second time does not?
0
 
LVL 20

Expert Comment

by:alainbryden
ID: 17148177
what?
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now