473,385 Members | 2,015 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.

Reset connection properties for all pass thru queries ?/?

Hi All,

Can some pls tell me the syntax that to placed in below _____

When i set ODBC connect strg properties by query properties it something looks like....

Expand|Select|Wrap|Line Numbers
  1.  
  2.  
  3. ODBC;DRIVER={Oracle ODBC Driver for Rdb};SERVER=XXX.COM@FXDB@11111@W;UID=hars;PWD=password;SVR=XXX.COM;CLS=FXDB;
  4. DATABASE=ATTACH 'FILENAME ABC_DB';XPT=2;CSO=1;DBA=W;DSO=0;TLL=;TLO=0;
  5.  
  6.  
Expand|Select|Wrap|Line Numbers
  1.  Public Const strConnect= "________"
  2.  
  3. Function SetConnections()
  4. On Error GoTo Trapper
  5.  
  6.  
  7. For Each QueryDef In CurrentDb.QueryDefs
  8. If QueryDef.Connect <> "" Then
  9. QueryDef.Connect = "ODBC;" & strConnect
  10. End If
  11. Next
  12.  
  13.  
May 18 '09 #1
1 2944
Hi All,

I Got IT ......
Expand|Select|Wrap|Line Numbers
  1. Public Const strConnect = "Set your connection string here"
  2.  
  3. Function SetConnections()
  4.  
  5. MsgBox strConnect
  6.  
  7. For Each QueryDef In CurrentDb.QueryDefs
  8. If QueryDef.Connect <> "" Then
  9. QueryDef.Connect = "ODBC;" & strConnect
  10. End If
  11. Next
  12.  
  13. End Function
  14.  
  15.  
Thanksss
May 18 '09 #2

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

Similar topics

14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
8
by: Tcs | last post by:
I've been stumped on this for quite a while. I don't know if it's so simple that I just can't see it, or it's really possible. (Obviously, I HOPE it IS possible.) I'm trying to get my queries...
2
by: vulcaned | last post by:
I'm thinking I might want to move the back-end to one of my Access97 applications to SQLServer instead of continuing to use Access jet but before I start/do that I have several questions I'm hoping...
1
by: timandsuzi36 | last post by:
Here's the issue. Appreciate any help any Access gurus can offer. I have a .NET WinForms application that needs to launch a Access DB application used for generating Access Reports. That part...
11
by: DFS | last post by:
Architecture: Access 2003 client, Oracle 9i repository, no Access security in place, ODBC linked tables. 100 or so users, in 3 or 4 groups (Oracle roles actually): Admins, Updaters and ReadOnly....
2
by: Greg Strong | last post by:
I'm experimenting with using Access 2k2 as a front end to Oracle Express. I am creating 10 tables using pass through DDL queries. The PROBLEM is the general format of the VB code WORKS on the 1st...
9
by: Bill E. | last post by:
I'm creating an MS Access application that connects to a SQL Server 2005 database using pass-through queries and ADO to call stored procedures. I ran a SQL trace and started clicking through...
4
by: Bill E. | last post by:
Lyle, Thanks for the information. I'm not using an ADP and I'm not using application roles, although I was considering it. I agree that it would be helpful if it were documented somewhere how...
2
by: pabs1111 | last post by:
Hi All I think I have made a very newbie mistake in my use of Pass Through Queries. I have created pass through queries using the query wizard and then setting the connection string in the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.