473,387 Members | 1,510 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.

Exporting Date to txt file

Hi,

I have a Make Table query that has the Date field as follows,
Date: IIf(IsNull([FSP date]),"",DateValue((IIf(IsNull([FSP date]),"",Format([FSP date],"mm/dd/yyyy"))))).

Query run fine and creates the table, but when I try to export it to a txt file using the export wizard it fails and gives me the message that says, "Microsoft Jet Database could not find the object". Could somone please shed some light and tell me what am I doing wrong here !!

Thanks
Mar 6 '08 #1
1 1457
Stewart Ross
2,545 Expert Mod 2GB
Hi,

I have a Make Table query that has the Date field as follows,
Expand|Select|Wrap|Line Numbers
  1. Date: IIf(IsNull([FSP date]),"",DateValue((IIf(IsNull([FSP date]),"",Format([FSP date],"mm/dd/yyyy")))))
Query run fine and creates the table, but when I try to export it to a txt file using the export wizard it fails and gives me the message that says, "Microsoft Jet Database could not find the object". Could somone please shed some light and tell me what am I doing wrong here !!

Thanks
Hi. Whatever is happening it is unlikely to be as a result of the date conversion and subsequent table export. Out of interest I tried a make-table that included a number of fields along with your string-converted date function. I exported the table to text with no problems.

You might wish to backup your database then try a compact and repair and see if your export difficulties continue.

Your string conversion for the date does not need to test for null twice:
Expand|Select|Wrap|Line Numbers
  1. Date: IIf(IsNull([FSP date]),"",DateValue((Format([FSP date],"mm/dd/yyyy"))))
-Stewart

ps the DateValue function is unnecessary too and can be left out altogether:
Expand|Select|Wrap|Line Numbers
  1. Date: IIf(IsNull([FSP date]),"",Format([FSP date],"mm/dd/yyyy"))
Mar 7 '08 #2

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

Similar topics

0
by: abhishek.srivastav | last post by:
Hi I m a new one in Db2 .I have a table which includes a varchar,date and a clob column.I am trying to export all the columns at one go rather than exporting the varchar and date type data once...
3
by: Fran Zablocki | last post by:
I have a process that exports an Access table to a comma-delimited text file. One of the fields that is exported shows the date it was exported, using the Date() function. In the Access table, the...
4
by: D | last post by:
I've created a report with many subreports of aggregate data. I want my client to be able to export this data to Excel to make her charts, etc. Only one problem: one of the fields is a "SchoolYear"...
1
by: Big Time | last post by:
I'm exporting a large amount of data from one of my tables into a tab delimited text file. The problem is the fields that have date format come out in MM/DD/YY HH:MM:SS format when what I want is...
3
by: David P. Donahue | last post by:
I'm re-writing an application in C# that was originally written in Delphi 7. The heart of the application is a DataSet displayed in a DataGrid. One of the main functions of the previous...
20
by: czarbjones | last post by:
Hey Gurus, I'm trying to export a query (QueryDataExport) to a comma delim CSV file. The file name should look like this "C:\DSF_20061127_124211.csv" however it is exporting as "C:\DSF_.csv". ...
6
by: sara | last post by:
I have what I think is a little strange...I have to get data from our payroll system into a specific format (fixed record length) as a .txt or .prn file only to upload to our 401k custodian. I...
16
by: pmatzek | last post by:
I am attempting to automate a process involving importing a .txt file into an existing table, changing a date in each record, then exporting the table, again as a .txt file. One field contains a...
2
by: mamin | last post by:
I have a table that I need to export out to a text fiel, without column headers. I also need to have the file name include currernt date. Can anyone help me? I'm using the following code: ...
2
by: billelev | last post by:
Hi there, My question does not concern the exporting of data to CSV so much as the format of the exported data. The data to be exported consists of a time series of prices for a number of assets....
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: 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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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
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...

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.