Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jocke
 
Posts: n/a
Default msquery prompt for password


hi, is it possible to use the shell command to send a password to
msquery when msquery prompts for password when updating query.

i usually open databases with ado but in this case i cannot do so.
And i'd like to refresh the query automatically when file opens.


--
jocke
------------------------------------------------------------------------
jocke's Profile: http://www.excelforum.com/member.php...nfo&userid=766
View this thread: http://www.excelforum.com/showthread...hreadid=523663

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ardus Petus
 
Posts: n/a
Default msquery prompt for password

Edit the "connection" property of your Querytable, and add
";password=whatever"

HTH
--
AP

"jocke" a écrit dans le
message de ...

hi, is it possible to use the shell command to send a password to
msquery when msquery prompts for password when updating query.

i usually open databases with ado but in this case i cannot do so.
And i'd like to refresh the query automatically when file opens.


--
jocke
------------------------------------------------------------------------
jocke's Profile:

http://www.excelforum.com/member.php...nfo&userid=766
View this thread: http://www.excelforum.com/showthread...hreadid=523663



  #3   Report Post  
Posted to microsoft.public.excel.misc
jocke
 
Posts: n/a
Default msquery prompt for password


i don't create the query in vba i have it in a worksheet.
how can i edit the connection property then?


this is my code

With ActiveSheet.QueryTables("testdata")
.Refresh BackgroundQuery:=False
End With

/jocke


--
jocke
------------------------------------------------------------------------
jocke's Profile: http://www.excelforum.com/member.php...nfo&userid=766
View this thread: http://www.excelforum.com/showthread...hreadid=523663

  #4   Report Post  
Posted to microsoft.public.excel.misc
jbrackett
 
Posts: n/a
Default msquery prompt for password


Right-click somewhere in your dataset Data Range Properties... Save
password...

Another one I check is to "Fill down formulas in adjacent columns..."
at the bottom of the dialog box. This is great for grouping or
conditioning data for use in pivot tables. (Example: a date cell to a
month or day of week or using a nested if to return values)

Regards,

Jay


--
jbrackett
------------------------------------------------------------------------
jbrackett's Profile: http://www.excelforum.com/member.php...o&userid=32577
View this thread: http://www.excelforum.com/showthread...hreadid=523663

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
save prompt for user exit, but no save prompt for batch import? lpj Excel Discussion (Misc queries) 1 February 25th 06 02:08 AM
Prompt to update links Werner Rohrmoser Links and Linking in Excel 0 November 3rd 05 09:47 AM
AutoSave: How can I get it to save every 5 minutes & NO prompt? Valerie Excel Worksheet Functions 1 September 27th 05 10:53 PM
Excel prompt inaccessible to users JT Excel Discussion (Misc queries) 2 February 4th 05 01:35 AM
Text to Speech prompt Brenda Hutton Excel Discussion (Misc queries) 1 December 3rd 04 02:39 AM


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

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"