Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-10-2000, 11:58 PM   #1
Member (3 bit)
 
Join Date: Jul 2000
Posts: 4
Exclamation

Hi all,

Just trying to create a simple prog. via the data-form-wizard supplied with VB6 enterprise Ed.
My problem is this: I'm trying to link a database (the database file is in MS Excel format - and not MS ACCESS hence the link is established with OBDC) via an ADOBC data control icon to a Data Grid object.
The problem is that after filling in the required fields, and running the program, i find that a msg box error pops up with the msg (along the lines of...) 'record source name not found'.
I'm using the following SQL statement to retrieve the d/b: Select * from filename

where filename is the name of the file, and also the name of the "sheet" in MS EXCEL

any ideas anyone??

thanks in advance!
dallandra is offline   Reply With Quote
Old 07-11-2000, 02:29 AM   #2
Member (7 bit)
 
Join Date: May 1999
Location: Albuquerque, NM USA
Posts: 68
Post

I apologize for sounding trite, but have you checked to insure that you've placed a correct directory reference in the SQL statement? As you probably know, the slightest typo can do you in there.

Another thing, if the Excel sheet has several pages, you may have to specify which page. I don't know for sure about that one, but I've run into it when grabbing data from Excel from inside Word and other office programs.

Hope this helps

MMM

------------------
Patience is the price you pay when you can't pay the price.

[This message has been edited by Mcubed (edited 07-11-2000).]

[This message has been edited by Mcubed (edited 07-11-2000).]
Mcubed is offline   Reply With Quote
Old 07-11-2000, 02:41 AM   #3
Member (3 bit)
 
Join Date: Jul 2000
Posts: 4
Post

Well supposidly i cant enter the directory path within the SQL statement field, as the dir-link has been established within one of the other fields (cant remember off hand) but the path was correct and using the "test connection" button whilst in design mode - VB found the file and connection was "successful"

*shrug*

anyhow thanks

quote:
Originally posted by Mcubed:
I apologize for sounding trite, but have you checked to insure that you've placed a correct directory reference in the SQL statement? As you probably know, the slightest typo can do you in there.

Another thing, if the Excel sheet has several pages, you may have to specify which page. I don't know for sure about that one, but I've run into it when grabbing data from Excel from inside Word and other office programs.

Hope this helps

MMM




dallandra is offline   Reply With Quote
Old 07-11-2000, 02:04 PM   #4
Member (8 bit)
 
leethehund's Avatar
 
Join Date: Jun 1999
Location: SF Bay area (CA)
Posts: 237
Post

Don't know if this will help as I use VB5, not 6, but I found that I had to append a "$" to an Excel file name to get a valid "table" name (same as sheet name, I think) for a Data Access Object which I beleve is the forerunner of the OBDC.
lee
leethehund is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:38 AM.
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.6.0