A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Linking Excel Into Access Issue



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2010, 07:11 PM posted to microsoft.public.access.queries
Gary
external usenet poster
 
Posts: 790
Default Linking Excel Into Access Issue

I am using Acc 2003, but Acc 2007 should work the same (I think).

I have linked an excel spreadsheet into my Access database. Almost all of
the fields are available and can be read.

There are a few fields that I can see in Access, but its in Excel sheet.
These
fields were using a VLookUp function in excel to get the value from another
excel worksheet.

Also the linked excel sheet has fields that I believe should be text (in
Access), but its was set to be a number. I am unable to change this.

Is there a way to resolve this issue for me ???

I also assume that if I was to read each cell in the excel sheet and convert
it into text files using VBA code, that should resolve the issue.

Does someone have any suggestions for me ???


Thank You,

G
  #2  
Old May 7th, 2010, 07:27 PM posted to microsoft.public.access.queries
KARL DEWEY
external usenet poster
 
Posts: 10,767
Default Linking Excel Into Access Issue

One way is to remove the link, add a phony row of data in Excel just under
column names, re-link, and remove phony row of data.
Access looks at first rows of data to determine datatype. Using text in the
phony row will make Access bring that column.field in as text.

--
Build a little, test a little.


"Gary" wrote:

I am using Acc 2003, but Acc 2007 should work the same (I think).

I have linked an excel spreadsheet into my Access database. Almost all of
the fields are available and can be read.

There are a few fields that I can see in Access, but its in Excel sheet.
These
fields were using a VLookUp function in excel to get the value from another
excel worksheet.

Also the linked excel sheet has fields that I believe should be text (in
Access), but its was set to be a number. I am unable to change this.

Is there a way to resolve this issue for me ???

I also assume that if I was to read each cell in the excel sheet and convert
it into text files using VBA code, that should resolve the issue.

Does someone have any suggestions for me ???


Thank You,

G

 




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 10:45 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.