473,396 Members | 1,865 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,396 software developers and data experts.

Access - FORM - vb ends when encounters "#VALUE"

pod
298 100+
Hello
I am importing Excel files data into an Access database. My script goes through one Excel file at a time, row by row, and build a SQL statement for each row to insert data into the database. But on one of the Excel files, it encountered a cell with the value "#VALUE" in it, and the macro stops dead, leaving no debug message, no error popup, it just stops, with Excel file hanging in the process.

Has anyone ever encountered this?

I am using 2003 now, just recently, I am wondering if it is not related.

Thanks

P :oD
Dec 6 '07 #1
2 1276
Nathan H
104 100+
Hello
I am importing Excel files data into an Access database. My script goes through one Excel file at a time, row by row, and build a SQL statement for each row to insert data into the database. But on one of the Excel files, it encountered a cell with the value "#VALUE" in it, and the macro stops dead, leaving no debug message, no error popup, it just stops, with Excel file hanging in the process.

Has anyone ever encountered this?

I am using 2003 now, just recently, I am wondering if it is not related.

Thanks

P :oD
I've had some issues like that before. I just copied and pasted values in the spreadsheet before import to get rid of calculations and to replace #VALUE and #N/A values with numbers or data.

I didn't have to deal with handling large numbers of spreadsheets or on a repeated cycle, so if that is the case, it would be too time consuming.

What is your code doing in detail?
Dec 6 '07 #2
pod
298 100+
I've had some issues like that before. I just copied and pasted values in the spreadsheet before import to get rid of calculations and to replace #VALUE and #N/A values with numbers or data.

I didn't have to deal with handling large numbers of spreadsheets or on a repeated cycle, so if that is the case, it would be too time consuming.

What is your code doing in detail?
Hi Nathan
... my code reads the data in each cell and builds an INSERT SQL statement, and at the end of each row, the code executes the SQL statement.

I do have many EXCEL files to go through, 308 at a time.

These EXCEL files have MACROS in them, I presume that is where #VALUE came from... but I have been doing this for a few years, I have never encountered this problem before... but this is the first upgrade since then, I was using Access 2000 before
Dec 6 '07 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: johnsuth | last post by:
I want to produce a trivial demonstration of dynamic modification. I thought that pressing a button might change its color. I studied O'Reillys books and successfully created the button with a...
3
by: ahaque38 | last post by:
Hello. Using A2K SP3, I am having the following problem with a report using "Sorting and Grouping". I have recently added a grouping in the reports for "Category2<>'CONTRACTS'". I have...
388
by: maniac | last post by:
Hey guys, I'm new here, just a simple question. I'm learning to Program in C, and I was recommended a book called, "Mastering C Pointers", just asking if any of you have read it, and if it's...
14
by: TTroy | last post by:
Hello, can anyone explain why the following function will not work for INT_MIN: /* itoa: convert n to characters in s */ void itoa(int n, char s) { int i, sign; if((sign = n) < 0) /*...
2
by: IkBenHet | last post by:
Hello, I am uploading a file using this form in ASP.NET. I have also added a simpel textfield: <form runat="server" enctype="multipart/form-data"> <input type="file" id="oFile" Name="oFile"...
12
by: Emi Lu | last post by:
Hello all, I have a question about "date" & "timestamp" types in PostgreSQL. I want to setup the default value '0000-00-00' and "0000-00-00 00:00:00" for them. However, it seems that PostgreSQL...
3
by: Darin | last post by:
I have a problem I just can't figure out. I have a form with a subform, and the recordsource of the subform has criteria based on some unbound fields in the parent form so that data in the parent...
1
by: mark | last post by:
Forgive me if this seems like a stupid question but I need help... I'm trying to do a simple online form that emails me the results from a few fields. Here is the code: <form...
1
by: bodilima | last post by:
Dear All, I'm new to this! I wanna insert selected values from form "SaveModel" to form "SaveMake" <input name="makeID" value="<<<<need to insert here(x)>>>>"> & <input name="make"...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.