Questions tagged [ms-query]

Microsoft Query is a program for retrieving data from external sources into other Microsoft Office programs — in particular, Microsoft Excel

Microsoft Query is a program for bringing data from external sources into other Microsoft Office programs — in particular, Microsoft Excel. By using Query to retrieve data from your corporate databases and files, you don't have to retype the data you want to analyze in Excel. You can also update your Excel reports and summaries automatically from the original source database whenever the database is updated with new information.

Types of databases that you can access

You can retrieve data from several types of databases, including Microsoft Office Access, Microsoft SQL Server, and Microsoft SQL Server OLAP Services. You can also retrieve data from Excel workbooks and from text files.

Microsoft Office provides drivers that you can use to retrieve data from the following data sources:

  • Microsoft SQL Server Analysis Services (OLAP provider)
  • Microsoft Office Access
  • dBASE
  • Microsoft FoxPro
  • Microsoft Office Excel
  • Oracle
  • Paradox
  • Text file databases
170 questions
1
vote
1 answer

Syntax for subqueries in the FROM clause using multiple INNER JOIN's in MS Query

I've been trying for a few days now (grrr) to pull data out of an ODBC-connected database using the manual SQL statement window in MS Query. I can see what it is I would like to do, but am getting hung up on the syntax (which I'm pretty sure is…
PriceHardman
  • 1,693
  • 1
  • 12
  • 14
1
vote
1 answer

Convert 24 hr format to 12 hr AM/PM format in SQL query

I know there are several questions similar to mine, but I need specifics. Using SQL in Microsoft Query, I have a time column that produces a result like 1900-01-01 13:30:00:0000000 and I need to convert it to produce only a 1:30PM result. Now, my…
1
vote
1 answer

What may cause MS Query (msqry32.exe) to crash when I try to use MySQL ODBC driver?

I need to import some data to Excel from MySQL DB via MS Query (using MySQL ODBC driver). At the first step I set up Data Source name, TCP/IP server, port, username, password and schema name. When I pressed the Test button, the connection worked…
Kotopes
  • 11
  • 1
  • 2
0
votes
0 answers

Microsoft query in Excel returning a blank column when SSMS does not

I'm using MS query to return data to Excel from SSMS. When I run the query in SSMS it runs without error and all fields return with records (see bottom left). When I run the query in MS Query (to pull into Excel) one of my fields is now returning…
TeleJim
  • 317
  • 3
  • 20
0
votes
0 answers

MS Access, passing the total of all outstanding loans to a query to find the percentage of loans outstanding to the total loans for each record

I am fairly new to MS Access so I'll share all pictures and share what I have come up with so far. I have records of sales agents with loans sold and outstanding loans balances. I want to be able to calculate the outstanding loan balance per agent…
0
votes
1 answer

Count columns that ends with the same value starting with a value you choose

I have a table which is like: Identfier Abc XY: a(123) Abcd XY: a(123) Abcde XY: b(123) dfe XY: b(123) dfeg XY: b(123) dfegh XY: c(123) ijk XY: c(123) I want to count columns that they end with the same value starting from a…
0
votes
1 answer

Query to filter a table where a field can be a number or left empty

I created a form with 3 textboxes & a search button. Also a query that is setup to take the criteria in the textboxes & filter the results of a table with 1000+ records. I followed this YouTube tutorial: watch?v=CTiA_4Me0cI&t=379s It works to some…
Tom TK
  • 65
  • 9
0
votes
0 answers

Execute/run a select query in the background, not visible

I would like to find out how to run a select query but have it run in the background and not be seen. I have a "Master Table" with 2000+ records in it, the query I made acts like a filter, taking information from text boxes on a form and uses a…
Tom TK
  • 65
  • 9
0
votes
1 answer

Two Table columns into one Query

I'm trying to bring data from two different columns into one query field. Example: Table1 [Field1] and [Field2]. I don't know if that's possible but in my Query I'm trying to bring the datas from these two Fields and show into one in Query.…
Thyreme
  • 17
  • 6
0
votes
2 answers

Excel data type issues

I am using MS query to pull data from sql server and all is good. Problem starts when data comes from the server I am stuck with data type general for everything, and no way to change the data type in excel. Main issue is numbers, where in database…
ChefJ
  • 27
  • 7
0
votes
1 answer

Why am I getting a "type mismatch" error in my Accessdb query?

I am running a query in Access Database that should aggregate information based on year, month, and type. I set it up so that for the month, it would read the MonthName(InfoDate,1) to return the abbreviated month name. When I have all the query…
trs11
  • 13
  • 5
0
votes
1 answer

Excel ODBC Import from MySQL

I have an excel import from ODBC setup using MSQuery and all of the data and rows I want are being returned fine there however when I send the data to my excel workbook I am missing 3 fields day, month & year Can anyone help find out why? SELECT …
Justin Erswell
  • 688
  • 7
  • 42
  • 87
0
votes
2 answers

Excel-VBA-Query Is there a way to improve Excel VBA speed with a Refresh.All with a lot of query?

I have a tab and few pivot table. Everything was working fine but now because I added vlookup in the tab along with few formula it make the file VERY slow. Please note that I have a connection to ODBC and SQL to pull like 30,000 row and 32 column of…
DLP
  • 1
  • 5
0
votes
0 answers

64 Bit Excel ODBC query generates corrupt data

When trying to query from Microsoft Query and return the data to Excel, I am getting strange characters as shown in the attachment. It is returning some Chinese characters and some other unknown characters. Strange Characters When querying the data…
rfdom
  • 1
  • 2
0
votes
1 answer

Update Table with value from another table, else NULL

I was trying to Update a query on MS-Access. Let's Assume, I have two Tables (Employee, Department). I have (ID, Name, FK_DepartmentID) in Employee Table. And, two Column in Department(ID, DepartmentName) Table, Where I want to check if department…