#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Web Query


Brand new to web queries and I'm having a problem getting it set up.
Created a page which returns a single table. Created a spreadshee
with webquery containing 1 static parameter and two dynamic parameters

If I go to the web page without the Excel Web query everything is fine

http://www.mahec.net/nfd/print2.asp?...ndDate=7/2/200


But when I try to use a web query, it prompts me for the two dates, bu

tells me there's no data in the web query.
Here's the formula bar:
print2.aspid=12&["startDate","start"]&["endDate","End"]

Any help appreciated

--
janet
-----------------------------------------------------------------------
janetb's Profile: http://www.excelforum.com/member.php...nfo&userid=403
View this thread: http://www.excelforum.com/showthread.php?threadid=39779

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Web Query

Maybe you're missing the question mark in the url?

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

janetb wrote:
Brand new to web queries and I'm having a problem getting it set up.
Created a page which returns a single table. Created a spreadsheet
with webquery containing 1 static parameter and two dynamic
parameters.

If I go to the web page without the Excel Web query everything is
fine:

http://www.mahec.net/nfd/print2.asp?...dDate=7/2/2005


But when I try to use a web query, it prompts me for the two dates,
but

tells me there's no data in the web query.
Here's the formula bar:
print2.aspid=12&["startDate","start"]&["endDate","End"]

Any help appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Web Query


Naw, looks like I copy/pasted in a hurry. Full url in Excel formula bar
is:

print2.asp?id=12&["startDate","StartDate"]]&["endDate","EndDate"]

I notice it doesn't give the full url just starting at the document
name. Is that saved somewhere else. I was wanting to keep the
url/parameters within the spreadsheet - it's not needed elsewhere.

The asp page is in table format not xml. Is that okay?

Thanks for the reply - jb


--
janetb
------------------------------------------------------------------------
janetb's Profile: http://www.excelforum.com/member.php...fo&userid=4034
View this thread: http://www.excelforum.com/showthread...hreadid=397791

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 595
Default Web Query

Janet

Can you walk me through what you're doing? When I do a web query, I go to
Data Get External Data New Web Query and paste in the URL. The URL
never shows up in the formula bar that I know. Maybe we're talking about
different things.

--
Dick Kusleika
Excel MVP
Daily Dose of Excel
www.dicks-blog.com

janetb wrote:
Naw, looks like I copy/pasted in a hurry. Full url in Excel formula
bar is:

print2.asp?id=12&["startDate","StartDate"]]&["endDate","EndDate"]

I notice it doesn't give the full url just starting at the document
name. Is that saved somewhere else. I was wanting to keep the
url/parameters within the spreadsheet - it's not needed elsewhere.

The asp page is in table format not xml. Is that okay?

Thanks for the reply - jb



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Web Query


I got this to work in the module section, but I'm really curious as t
what I was doing wrong with the GOOEY interface. Can anyone help m
out? I still can't get the other method to work.

Sub URL_Get_Query()
With ActiveSheet.QueryTables.Add(Connection:= _

"URL;http://www.mahec.net/nfd/print2.asp?id=12&startDate=[""startDate"",""Ente
start date.""]&endDate=[""endDate"",""Enter end date.""]", _
Destination:=Range("A1"))
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
End Sub

Thanks,
Jane

--
janet
-----------------------------------------------------------------------
janetb's Profile: http://www.excelforum.com/member.php...nfo&userid=403
View this thread: http://www.excelforum.com/showthread.php?threadid=39779



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Web Query


Got it! In case anyone else needs it, I was missing quote marks and
another set of parameter info:

print2.asp?id=12&startDate=["'startDate'","start"]&endDate=["'endDate'","End"]


--
janetb
------------------------------------------------------------------------
janetb's Profile: http://www.excelforum.com/member.php...fo&userid=4034
View this thread: http://www.excelforum.com/showthread...hreadid=397791

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert hard coded query criteria to Parameter Query Melanie[_2_] Excel Discussion (Misc queries) 0 July 15th 08 09:59 PM
Excel 2007 / MS Query - editing existing query to another sheet Hotpepperz Excel Discussion (Misc queries) 0 June 13th 08 06:53 PM
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? jocke Excel Discussion (Misc queries) 0 November 28th 05 06:37 PM
Microsoft Query rejects "nz" function in Access Query Vaughan Excel Discussion (Misc queries) 0 May 4th 05 05:20 PM
How to use a Access Query that as a parameter into Excel database query Karen Middleton Excel Discussion (Misc queries) 1 December 13th 04 07:54 PM


All times are GMT +1. The time now is 10:24 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"