473,385 Members | 1,347 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,385 software developers and data experts.

import external data from Acces into excel

Hi I have a select query in my Access database that I want to import in to excel.
When I do this excel comes up with error msg "...Cannot find input table or query 'tPPF'...etc" The tPPF table is in the criteria for one of the fields.

1.The query works fine in Access.
2.Other queries also using tPPF table import without problem into excel
3.If I remove the criteria statment the query import without problem.

the sql for the query:
Expand|Select|Wrap|Line Numbers
  1. SELECT tConsignmentResults.*
  2. FROM tConsignmentResults
  3. WHERE (((tConsignmentResults.Month)=(DLookUp("[Month]","tPPF","[CurrentMonth] =True"))));
any ideas why this does not work whould be welcome.
Basically I am using Dlookup to find the current month code in the tPPF table, and then use resulting value to filter the month field.


Klipvis
Sep 12 '07 #1
1 2027
Denburt
1,356 Expert 1GB
I can't give you a definite response except that Excel probably doesn't like the DLookup function.

Try using a query (subquery) for the criteria and see if it works for you it is almost the same as using the DLookup function.
Expand|Select|Wrap|Line Numbers
  1.       SELECT tConsignmentResults.*
  2.       FROM tConsignmentResults
  3.       WHERE (((tConsignmentResults.Month)=(Select [Month] from tPPF Where [CurrentMonth] =True)));
  4.  
Sep 12 '07 #2

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

Similar topics

1
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
2
by: Fred | last post by:
Hi. How do I import while mapping an excel table to an access table please??? I've searched around and all I can find is a software product or code that does the same thing as the access...
3
by: Sherman H. | last post by:
When I imported a spreadsheet that has more than 220,000 rows, how come I always get 64,999 in the access? Any way I can change to get them all? Is this to do with RAM?
0
by: J. Koskey | last post by:
We're having a problem with the File-Get External Data-Import function on a PC with Access 2000 - it just doesn't work, but gives no error message. When we try to use the File-Get External...
1
by: John Hewitt | last post by:
A 'newbie' question - importing into Access from Excel. Googled the group postings but I can't find the amswer I have a 50 line three column file in Excel that contains Names and Tel numbers....
2
by: Siu | last post by:
Hi, I use the following code to export and import a file Excel from resp. into a Web page with the following code: //EXPORT Response.Clear(); Response.Buffer = true; Response.ContentType =...
1
by: Eric | last post by:
In MS Excel, the ability exists to run a "web query." This function is accessed via the data menu's import external data option. The web query wizard accepts a URL address, and then is able to...
1
by: Haidee | last post by:
Hi I'm pretty new to MS Access so please be patient.... I have a user that is trying to import an external excel spreadsheet into MS access 2003 by using the File - Get external data - Import. ...
3
by: inepu | last post by:
I have some excel sheets that I would like to manage in access. I've created the access tables and relationships; the excel sheet is only one table and with duplicate data, I'd like to make sure that...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...

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.