A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Access queries running slowly using forms objects in criteria



 
 
Thread Tools Display Modes
  #1  
Old September 14th, 2007, 02:04 PM posted to microsoft.public.access.queries
Tom Telford[_2_]
external usenet poster
 
Posts: 9
Default Access queries running slowly using forms objects in criteria

Anyone know anything about this?

I'm using MSAccess 2003 sp2 and I have several queries that run quickly when
I use hard values or prompts in the criteria line but as soon as I try to use
a value from a text box or combo box on a form they grind away for minutes on
end.

Thanks,

Tom.
  #2  
Old September 14th, 2007, 03:38 PM posted to microsoft.public.access.queries
S.Clark[_2_]
external usenet poster
 
Posts: 423
Default Access queries running slowly using forms objects in criteria

If the controls on the form are unbound, then Access may not know what the
datatype is, which can cause performance issues. Maybe wrap the parameter
with cint, cdate, or other function to help it better understand?

e.g. CInt([Forms]![formname]![controlname])

(You could also try using the parameters declaration box to specify the
datatype, too. I've never tried it with this syntax, so don't know if it
will work. Choose Query / Parameters from the Menu.)

--
Steve Clark,
Former Access MVP
FMS, Inc
http://www.fmsinc.com/consulting



"Tom Telford" wrote:

Anyone know anything about this?

I'm using MSAccess 2003 sp2 and I have several queries that run quickly when
I use hard values or prompts in the criteria line but as soon as I try to use
a value from a text box or combo box on a form they grind away for minutes on
end.

Thanks,

Tom.

  #3  
Old September 14th, 2007, 03:42 PM posted to microsoft.public.access.queries
Tom Telford[_2_]
external usenet poster
 
Posts: 9
Default Access queries running slowly using forms objects in criteria

Thanks, I'll give it a try.

Tom.

"S.Clark" wrote:

If the controls on the form are unbound, then Access may not know what the
datatype is, which can cause performance issues. Maybe wrap the parameter
with cint, cdate, or other function to help it better understand?

e.g. CInt([Forms]![formname]![controlname])

(You could also try using the parameters declaration box to specify the
datatype, too. I've never tried it with this syntax, so don't know if it
will work. Choose Query / Parameters from the Menu.)

--
Steve Clark,
Former Access MVP
FMS, Inc
http://www.fmsinc.com/consulting



"Tom Telford" wrote:

Anyone know anything about this?

I'm using MSAccess 2003 sp2 and I have several queries that run quickly when
I use hard values or prompts in the criteria line but as soon as I try to use
a value from a text box or combo box on a form they grind away for minutes on
end.

Thanks,

Tom.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:00 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.