473,396 Members | 1,970 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,396 software developers and data experts.

Query in a Form Only Once Part II

My last question wasn't specific enough so I narrowed it down and have pictures that should make it easier to understand what I am talking about.

So I have a main form that looks like this:



** SNIP **

Where you see the Lines column represents how many lines are on a specific record so for example Bloom Township has 145 Lines on it.

I am pulling from the following Query:



** SNIP **

The query is doing a Count by the IOB ID Num and the query Bid Status Query is the Record source for the Sub Form of the main form Bid Coordinator Main Form. The Sub Forms name is Bid Status Form.

So my question being once this query is run and you open this form it only Loads the Bid Status Query ONCE and that's it unless the person clicks a button that refreshes the Query. Cause as of now it takes around 45 seconds-1 minute to fully load this and it's used multiple times back and forth so it's just taking forever to Load.
May 8 '12 #1
1 1411
TheSmileyCoder
2,322 Expert Mod 2GB
First off, why do you join the customer table when you do not use of the fields from that table?


I think the long load time is caused in part, by grouping on the bid name, which I am guessing is not indexed.
Second, off, I think what I would do is to create a seperate query, to do perform the count of bid items, and then use that in your subform.

Are you sure your code is not doing anything active to requery the form? I dont believe the form requery's itself, unless asked to, allthough I do believe it will refresh the active record, which is what you may be experiencing. Having never had the need myself, I haven't really looked much into it. You could try setting the recordset TYPE to a snapshot instead of a dynaset and see if that helps anything.

Finally if none of the above works, a solution could be to have code that runs on form open, as well as on click of refresh button, to run a DELETE and a APPEND query to insert the records into a temporary table, and show that in the form.

Or if you can live with a denormalized database calculate the count and store it in the parent table (Bid information).
May 8 '12 #2

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

Similar topics

3
by: Mike Cocker | last post by:
Hello, I'm quite weak at PHP, so I was hoping to get some help understanding the below code. First off, I'm trying to create a "query form" that will allow me to display the results on my...
13
by: dogu | last post by:
Noob alert. Code is below. File is saved as a .php. What I'm trying to do: User uses 'select' box drop down list to pick a value. Value ($site) is derived from a db query. This works fine....
4
by: Wayne Baswell | last post by:
I want to pass a date variable to a sql statement from Crystal Reports. The part of the query accepting the variables looks like: "Calendar_Date between To_Date('1-JUN-03','mm/dd/yy') and...
3
by: Harvey | last post by:
Hi, I try to write an asp query form that lets client search any text-string and display all pages in my web server that contain the text. I have IIS 6.0 on a server 2003. The MSDN site says...
1
by: Dman | last post by:
MS Access 2002 - query form control returns funny symbols like I am running an append query on a form. Access is having trouble with the calculated fields and comboboxes. Example – referring...
4
by: sureshpalani | last post by:
Hi Friends, I am new to access. Just creating a simple application now. I want to open a "Main Menu" form once *.mdb is clicked so that the user need not browse for the main menu. Also, is...
10
by: FNA access | last post by:
Hello to the world of the wise, I am a CSOM student at TRU. I am trying to design a database to improve my understanding. The problem I am having is with setting up a query. I have a Query...
11
beacon
by: beacon | last post by:
Hi everybody, I created a database that links one table from an ODBC data source. I saved my password and UID to the data source so neither myself nor anyone else would have to login each time...
0
by: mbedford | last post by:
I'm buildling a form for tracking printer costs. This form will display data from several different tables pulled together by queries. formPrintCost will display: printer information from...
0
by: Brendan Wolf | last post by:
Hey Guys, I am not sure if there are too many SharePoint experts on here, but I figured I would ask and I would really appreciate any help. If there a way using a form web part to have one...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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
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,...
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,...

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.