473,407 Members | 2,359 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,407 software developers and data experts.

"SQL Time-Out Connection" error opening a from that has qselContract control source

syedshaffee
I'm , getting an error "Sql time out Conntection" while opening a from that has qselContract as control source.

But when i run the query it works fine but when i open the form i get and error

Please help on the same Given below is an attached doc with print preview
Oct 26 '12 #1
9 2493
TheSmileyCoder
2,322 Expert Mod 2GB
I see no attached document.

You need to provide some context here. What backend is being used, how is the form opened (code/manually), is any code fired in the open event, or just prior to form opening?
Oct 26 '12 #2
the Back end is sql sever 2005 And their is a procedure
Expand|Select|Wrap|Line Numbers
  1. Sub RecalcFunderAmounts()
  2.  
  3.     On Error GoTo Err_RecalcFunderAmounts
  4.  
  5.     If Not Nz(Me.txtCustomerID, 0) = 0 Then
  6.         DoCmd.SetWarnings False
  7.         DoCmd.OpenQuery "qdelztFunderFacility"
  8.         DoCmd.OpenQuery "qappFunderFacility"
  9.         DoCmd.SetWarnings True
  10.         Me.frmCustomerSubFunder.Requery
  11.     End If
  12.  
  13.     Exit Sub
and i m getting an error in this Procedure and this is not called Any where in the events... I checked and the form is programmatically opened
Attached Files
File Type: doc Doc1.doc (95.0 KB, 234 views)
Oct 26 '12 #3
TheSmileyCoder
2,322 Expert Mod 2GB
I am a bit confused. You say you get the error when you open a form, yet the code provided shows no form being opened.

Which line is giving the error?

Why do you open those queries? Are they action queries? If so, I would suggest using:
Expand|Select|Wrap|Line Numbers
  1. CurrentDB.Execute "qdelztFunderFacility"
instead.
Oct 26 '12 #4
Ok let me try doing it with sql and it take more than 30 minutes and counting. i'm thinking of increasing the ODBC time out property in the query design view.. will it help this only gives me an error for a specific Clients(Filter criteria)

thanx for your reply
Oct 26 '12 #5
YESSS! Problem solved i just increased the ODBC time out property in the queries design view thanx again TheSmileyCoder
for your reply
Oct 26 '12 #6
TheSmileyCoder
2,322 Expert Mod 2GB
You are welcome.

Are you saying your query takes more then 30 mins to run?
Oct 26 '12 #7
Yes when i ran it at ssms
Oct 26 '12 #8
TheSmileyCoder
2,322 Expert Mod 2GB
Now of course I don't know your data or how much there is of it, but it sounds like a lot. I guess since you wrote you ran it ssms that the 30 mins are running directly on the server, and not having the access jet engine doing it.

Just my 2 cents.
Oct 26 '12 #9
Rabbit
12,516 Expert Mod 8TB
Either you have a ton of data and a complex query (ie millions of rows joined to millions of rows joined to millions of rows) or your query is extremely inefficient.

Rather than suffer the 30 minutes, you should try to get it to run quicker instead.
Oct 26 '12 #10

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

Similar topics

3
by: IMS.Rushikesh | last post by:
Hi Friends, My work is stuck up because of this unresolvable and unbelievable Error. I'm trying to Serialize my Class object using XmlSerialization. And at below line, I m getting "error File...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
4
by: ItsMe | last post by:
Hi Guyz, I'm unable to understand this (AddressOf) error??? In VB6 I have two functions: ---------------------------- Public Function ImageFirstImageCallback(ByVal hWnd As Integer, ByVal...
1
by: bagya | last post by:
please help me out the following is the small code i have <html> <head> <script type="text/javascript"> function validate() { if (document.abc.region.value==0)
8
by: ipy2006 | last post by:
In my HTML I have, <input type="button" class="cartonsumkey" value="Sum Cartons" onclick="sumup(this);" /> In an external file that is called in Head area, I have, function sumup( o ) { ...
5
by: Archana | last post by:
Hi all, I am having application where i am downloading xml content using webrequest. my code is as below HttpWebRequest lWebRequest = (HttpWebRequest) WebRequest.Create(URL); HttpWebResponse...
1
by: jonny | last post by:
Went from using Visual Web Develop express to Visual Studio 2005 and getting error when trying to open project. Error message: "One or more projects in the solution could not be loaded for the...
21
vikas251074
by: vikas251074 | last post by:
I am getting error while entry in userid field. When user enter his user id, an event is fired immediately and user id is verified using AJAX method. But I am getting error 'Object doesn't support...
3
by: Pallav singh | last post by:
Hi All , i writing a shared library ,containing code in template i trying to explicitly instantiate functional & class template ........But i am getting Error #include<iostream> #include...
6
by: gonella123 | last post by:
I am getting #Error while generating report, after converting the database from 2003 to 2007. The "#Error" when run the report. On this you have report elements use nested if-statements as...
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: 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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...

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.