PC Review


Reply
Thread Tools Rate Thread

missing data when exporting out to excel

 
 
quzie
Guest
Posts: n/a
 
      2nd May 2009
I have a query that I am exporting out to excel. All data comes over fine
with the exception of one exp field - Reporting Code:
Forms!frmReportsMenu!SelectAllIHDIV. I need this data to export to my excel
file so I can use it as a heading in the excel file. If I copy and paste this
column in excel it will copy over fine but if I use the
DoCmd.TransferSpreadsheet it will not return any value in that field. Says
unable to append all data and that is the only field that doesnt seem to come
over. Any ideas on what I am doing wrong or how I can successfully get the
results of the Forms!frmReportsMenu!SelectAllIHDIV over to the excel sheet.

thanks in advance
 
Reply With Quote
 
 
 
 
Piet Linden
Guest
Posts: n/a
 
      2nd May 2009
On May 2, 1:42*pm, quzie <qu...@discussions.microsoft.com> wrote:
> I have a query that I am exporting out to excel. All data comes over fine
> with the exception of one exp field - Reporting Code:
> Forms!frmReportsMenu!SelectAllIHDIV. I need this data to export to my excel
> file so I can use it as a heading in the excel file. If I copy and paste this
> column in excel it will copy over fine but if I use the
> DoCmd.TransferSpreadsheet it will not return any value in that field. Says
> unable to append all data and that is the only field that doesnt seem to come
> over. Any ideas on what I am doing wrong or how I can successfully get the
> results of the Forms!frmReportsMenu!SelectAllIHDIV over to the excel sheet.
>
> thanks in advance


is the form open?
If you have to force it, I guess you could turn the query into a
maketable/append query and then export the contents of the table, but
I would make sure the form is open first and then run the export.
 
Reply With Quote
 
 
 
 
quzie
Guest
Posts: n/a
 
      3rd May 2009
I use a form that has a combo box SelectAllIHDIV and then it opens a query
that is dependent upon what is selected in that combo box on that form. So
the form is open but it only contains that combo box not the other fields
that need to be exported. I hope I explained that well enough that you know
what I am talking about.
thanks for your help

"Piet Linden" wrote:

> On May 2, 1:42 pm, quzie <qu...@discussions.microsoft.com> wrote:
> > I have a query that I am exporting out to excel. All data comes over fine
> > with the exception of one exp field - Reporting Code:
> > Forms!frmReportsMenu!SelectAllIHDIV. I need this data to export to my excel
> > file so I can use it as a heading in the excel file. If I copy and paste this
> > column in excel it will copy over fine but if I use the
> > DoCmd.TransferSpreadsheet it will not return any value in that field. Says
> > unable to append all data and that is the only field that doesnt seem to come
> > over. Any ideas on what I am doing wrong or how I can successfully get the
> > results of the Forms!frmReportsMenu!SelectAllIHDIV over to the excel sheet.
> >
> > thanks in advance

>
> is the form open?
> If you have to force it, I guess you could turn the query into a
> maketable/append query and then export the contents of the table, but
> I would make sure the form is open first and then run the export.
>

 
Reply With Quote
 
Piet Linden
Guest
Posts: n/a
 
      3rd May 2009
On May 2, 6:21*pm, quzie <qu...@discussions.microsoft.com> wrote:
> I use a form that has a combo box *SelectAllIHDIV and then it opens a query
> that *is dependent upon what is selected *in that combo box on that form. So
> the form is open but it only contains that combo box not the other fields
> that need to be exported. I hope I explained that well enough that you know
> what I am talking about.
> thanks for your help
>
> "Piet Linden" wrote:
> > On May 2, 1:42 pm, quzie <qu...@discussions.microsoft.com> wrote:
> > > I have a query that I am exporting out to excel. All data comes over fine
> > > with the exception of one exp field - Reporting Code:
> > > Forms!frmReportsMenu!SelectAllIHDIV. I need this data to export to myexcel
> > > file so I can use it as a heading in the excel file. If I copy and paste this
> > > column in excel it will copy over fine but if I use the
> > > DoCmd.TransferSpreadsheet it will not return any value in that field.Says
> > > unable to append all data and that is the only field that doesnt seemto come
> > > over. Any ideas on what I am doing wrong or how I can successfully get the
> > > results of the Forms!frmReportsMenu!SelectAllIHDIV over to the excel sheet.

>
> > > thanks in advance

>
> > is the form open?
> > If you have to force it, I guess you could turn the query into a
> > maketable/append query and then export the contents of the table, but
> > I would make sure the form is open first and then run the export.


What happens when you just run the query without trying to export? Do
you get the value from the combobox? Is it a multi-column combobox by
any chance?
 
Reply With Quote
 
quzie
Guest
Posts: n/a
 
      3rd May 2009
Yes I get the value in the query, if I copy and paste into excel works fine
if I use the transfer spreadsheet it does not bring that data over. Brings
all the other data in the query just not that column. I suppose I could think
of some other work around I just thought maybe there was something I was
doing wrong that might be easily corrected. The combo box i single column
selection and actually at this point only one value in that column.

"Piet Linden" wrote:

> On May 2, 6:21 pm, quzie <qu...@discussions.microsoft.com> wrote:
> > I use a form that has a combo box SelectAllIHDIV and then it opens a query
> > that is dependent upon what is selected in that combo box on that form. So
> > the form is open but it only contains that combo box not the other fields
> > that need to be exported. I hope I explained that well enough that you know
> > what I am talking about.
> > thanks for your help
> >
> > "Piet Linden" wrote:
> > > On May 2, 1:42 pm, quzie <qu...@discussions.microsoft.com> wrote:
> > > > I have a query that I am exporting out to excel. All data comes over fine
> > > > with the exception of one exp field - Reporting Code:
> > > > Forms!frmReportsMenu!SelectAllIHDIV. I need this data to export to my excel
> > > > file so I can use it as a heading in the excel file. If I copy and paste this
> > > > column in excel it will copy over fine but if I use the
> > > > DoCmd.TransferSpreadsheet it will not return any value in that field. Says
> > > > unable to append all data and that is the only field that doesnt seem to come
> > > > over. Any ideas on what I am doing wrong or how I can successfully get the
> > > > results of the Forms!frmReportsMenu!SelectAllIHDIV over to the excel sheet.

> >
> > > > thanks in advance

> >
> > > is the form open?
> > > If you have to force it, I guess you could turn the query into a
> > > maketable/append query and then export the contents of the table, but
> > > I would make sure the form is open first and then run the export.

>
> What happens when you just run the query without trying to export? Do
> you get the value from the combobox? Is it a multi-column combobox by
> any chance?
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Data Missing when Exporting from Access to Excel =?Utf-8?B?bWVycnlfZmF5?= Microsoft Access External Data 5 5th Sep 2005 07:53 PM
Memo fields not exporting to Excel correctly - missing data =?Utf-8?B?SkJ1cmxhZ2U=?= Microsoft Access External Data 1 19th Aug 2005 06:13 AM
Exporting to Excel through VBA (posted to exporting and VBA group) Katrina Microsoft Access VBA Modules 1 5th Feb 2004 12:04 AM
Exporting to Excel through VBA (posted to exporting and VBA group) Katrina Microsoft Access External Data 0 4th Feb 2004 03:34 PM
Exporting relationships with VBA (also posted in exporting newsgroup) Katrina Microsoft Access VBA Modules 2 14th Jan 2004 03:53 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:00 PM.