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

How to import excel spreadsheet with date column blank into table with date datatype?

167 100+
I am on release MS Access 2002. I need to be able to import a spreadsheet of data into a existing table in an access database. I am doing this by using the DoCmd.TransferSpreadsheet command.

The input spreadsheet data includes a date column (invoice date) which may or may not be populated. This column is formatted as a 'text' data type in the excel spreadsheet.

The database table that I have to load the data into (using vba code with an 'insert' statement) has the same columns as the spreadsheet but the 'invoice date' column on the table is defined as a date date type.

I understand because they are 2 different data types is why I am getting an error when I try to insert the invoice date from the spreadsheet (text format) into the invoice date on the access table (date format). However, the invoice date on the access table can not have the data type modified and will not always be populated in the spreadsheet or on the table.

There has got to be away to get around inserting a 'blank' date field.... I'm just not saavy enough with access to accomplish it! I have spent all afternoon trying different things to no avail. Any help would be appreciated.
Aug 10 '15 #1
0 1279

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

Similar topics

5
by: news.swissonline.ch | last post by:
Hi, DB2 7 FP 13 Windows XP I have a table in which on of the columns has the data type DATE. The date column is indexed (asc non-unique index). Every SQL I create which tries to filter by...
0
by: jere7 | last post by:
I have read through pages of responses and perhaps I missed a solution... but here is my issue: I have setup a Access database to track sales for our company and want to send out a shell Excel...
6
by: syvman | last post by:
Hi everyone... I am pulling my hair out trying to do this, and was wondering if someone could give me some assistance... I have an Excel spreadsheet containing several worksheets. I'd like to be...
0
by: ssrirao | last post by:
There is an Excel Spreadsheet containing data, residing in an internet site. It’s very easy to Import data from a local Excel Spreadsheet into SQL Server Database Table using DTS. But in my case...
3
AllusiveKitten
by: AllusiveKitten | last post by:
Hi, I really hope you can help... I am currently trying to write a code that will take an excel spreadsheet & save it to an access Table. I come up with an error "Operation is not allowed when...
7
by: TG | last post by:
hi! I am trying to create a sql server table from an excel sheet. Here is the code I have: 'This procedure the xlsx file and dumps it to a table in SQL Server
3
by: Teresa Barnacle | last post by:
Hi Need a little help or advice. I have a DBase with 2 tables a. Candidate Personal Details b. Candidate Registration Detail (reg for a qualification) A customer fills out a excel...
2
by: Erik Pygott | last post by:
Is it possible to use the TransferSpreadsheet function without hardcoding in the filename? I'm working on a DB that will have 10-15 people using daily and I'd like to have an import function where...
0
by: Javed Jahangiri | last post by:
I want to import Excel File Data in oracle table using C#. I have fetched the data from excel file but getting problem on transfering this data into oracle table.Below is my code: string filpath =...
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: 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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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.