473,489 Members | 2,473 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

EXPORTING Excel that is Reimportable

121 New Member
I have a db that exports a file as an Excel. I want users to be able to make changes to that excel and then re-import it.

I am running into a problem, I want users to see the Logical Names (Captions) so that they can see names they will recognize. But when I try to import the sheet without headings, I get an Field 'F1' doesn't exist error. My research points ot the problem being that there are no headings...

So i wondered if there is a way to export the captions and the field names.
Or is there some other option I haven;t thought of?

Thanks
Apr 25 '07 #1
6 1447
pks00
280 Recognized Expert Contributor
What are you using to import/export excel file

If in code, are you using DoCmd.TransferSpreadsheet?

if u use that then u can specify whether excel file has headings or not. That should get round your problem
Apr 26 '07 #2
JHNielson
121 New Member
What are you using to import/export excel file

If in code, are you using DoCmd.TransferSpreadsheet?

if u use that then u can specify whether excel file has headings or not. That should get round your problem
Yes, I am using DoCmd.TransferSpreadsheet. But I get an error. It gives me an error like....No fieldname for F1 found....

That's the problem I'm having...
Any ideas around this or how to fix it?
May 1 '07 #3
JHNielson
121 New Member
To be specific i get a "Field F1 Doesn't exist in destination table"

This is the code I'm using:
Expand|Select|Wrap|Line Numbers
  1.        DoCmd.TransferSpreadsheet acImport, 5, "DLU-Import", filename, False, "A2:CQ3000"
May 1 '07 #4
JHNielson
121 New Member
Anybody have any ideas?
May 1 '07 #5
Rabbit
12,516 Recognized Expert Moderator MVP
I think you'll have to either just export using the field names and import with the field names or you can import into a placeholder table and use a query to rename the fields before appending them to the main table.
May 1 '07 #6
pks00
280 Recognized Expert Contributor
Can u create columns in your xls file then import it but specify it has columns
May 2 '07 #7

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

Similar topics

3
9210
by: sridevi | last post by:
Hello How to export data from ms-access database to excel worksheet using ASP. mainly i need to export data to multiple worksheets. it is very urgent to us. i have a sample code which works...
4
3929
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"...
2
7691
by: G | last post by:
When I export data from access to excel by with "export" or "Analyze with" I seem to loose parts of some fields (long text strings). Is there a way to export it all to excel? Thanks G
2
7971
by: Kenneth | last post by:
How do I remove the limitation in Access that deny me from exporting 24000 rows and 17 columns (in a query) into Excel? Kenneth
5
3073
by: Neil | last post by:
Hi I'm currently exporting my datagrid to excel, taking advantage of the fact that excel can render html, the problem is that when i click the button to export it opens in browser, I want the button...
2
6907
by: Mustufa Baig | last post by:
Hi everybody, I have an ASP.NET website where clients can view their monthly billings by selecting different options. One of the option is the way they want to see the report i.e. whether they...
1
3144
by: Mustufa Baig | last post by:
I have an ASP.NET website where I am showing off crystal reports to users by exporting them to pdf format. Following is the code: ---------------- 1 Private Sub ExportReport() 2 Dim oStream...
2
2387
by: bienwell | last post by:
Hi, I have a question about exporting data from datagrid control into Excel file in ASP.NET. On my Web page, I have a linkbutton "Export data". This link will call a Sub Function to perform...
2
3156
by: Snozz | last post by:
The short of it: If you needed to import a CSV file of a certain structure on a regular basis(say 32 csv files, each to one a table in 32 databases), what would be your first instinct on how to...
0
6967
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
7352
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...
0
5445
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4565
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3078
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3071
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1383
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
618
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
272
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.