473,472 Members | 2,155 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How do I wait for a query to complete?

First, thanks Wayne Morgan, Cost Budde, and Saintor for all the help
you've been in getting me through the field of hidden mines in Access.
Most of the program now works, so hopefully I am nearing the end of my
(immediate) questions.

Since this is a bit of a high-level question, first a few words about
what I am (trying to) do. This is an AI medical diagnostic program,
that takes free-form natural language patient statements regarding all
of their health problems, extracts specific usable details, matches
them to known possible conditions, identifies questions to separate
the candidate conditions, extracts search words for medical databases,
etc.

Early appearances suggest that this program may be able to provide
better primary diagnostic health care than is usually available from
overworked live doctors! The program may not be as smart, but it is
MUCH more patient, has a better memory, and is thorough to a fault.

This is currently written in Access 97 so that porting to other
platforms will be as easy as possible. When (if?) this stabilizes, I
plan to convert it to VB playing against an Access MDB. This program
may then find its way to a web site if it doesn't turn out to be too
slow.

The guiding methodology throughout has been to use complex VBA
functions in queries to not only compute an output field (that is
often simply ignored, or just used for debugging), but to also
accumulate internal statistics to be used for the next phase of
analysis. For example, it accumulates the symptoms associated with
various high-ranking candidate conditions that a patient did NOT
mention, so the patient could be asked about these.

Yes, I've already observed some of the interesting "flakes" in this
approach, like SQL liking to look at the same record more than once
during a query. This hasn't caused (significant) problems, because
there is plenty of logic to reject duplicates throughout the program.

My fundamental logic seems to be holding together from end to end, but
I'm now having some interesting challenges with the platform.

My immediate problem is that I haven't yet found a reliable way to be
sure that a query has completed. I can put in a few DoEvents after
firing off a query and at least the simple stuff works. However,
debugging has been rather difficult, because setting a breakpoint in
one of the functions called by SQL simply stops the query while the
program continues on to "jump to confusions" without the full results
of the query.

I suppose that I could simulate the queries in DAO code, but that
seems to be a stone age solution to this problem. I suspect that one
of you gurus has a MUCH more elegant approach.

Do you have any thoughts, ideas, suggestions, commizerations,
castigations, curses, etc?

Thanks again.

Steve Richfield
Nov 13 '05 #1
2 3644
Steve Richfield wrote:
Early appearances suggest that this program may be able to provide
better primary diagnostic health care than is usually available from
overworked live doctors! The program may not be as smart, but it is
MUCH more patient, has a better memory, and is thorough to a fault.
I take it this will be of assistance to a doctor, not to a patient
without a doctor? The human expert can be relieved of all rote knowledge
access, and all 'standard' logic; but nothing can replace overview and
intuition as it is present in humans. I think.

I am very glad to see an application of AI here. I did a university
study in the field, but chose my work in other directions.
This is currently written in Access 97 so that porting to other
platforms will be as easy as possible. When (if?) this stabilizes, I
plan to convert it to VB playing against an Access MDB. This program
may then find its way to a web site if it doesn't turn out to be too
slow.
Have a side eye to other (SQL-like) database backends; currently I am
using DB2 with PHP as data retrievers for a web interface. But that is
quite OT here :-)
[...] to also accumulate internal statistics to be used for the next phase of
analysis.
Remark from the maybe-not-so-nice category: it may be worth the trouble
taking these operations out, and to put them in a separate query.
Procedure. Whatever.
My immediate problem is that I haven't yet found a reliable way to be
sure that a query has completed.
I can read this in two ways. Either an action query processes the last
record (that should be noticable) or a view (SELECT query, if you wish)
is done calculating the last record--in visible view, that is.
"jump to confusions"
ROTFL wonderful
I suppose that I could simulate the queries in DAO code, but that
seems to be a stone age solution to this problem. I suspect that one
of you gurus has a MUCH more elegant approach.


Nah, but if you don't simulate them but stimulate them from code? VBA
won't step over a currentdb.execute("queryname")

The presence of side effects should warn you that you possibly need
separate routines. I'd be glad to offer detailed help (offline probably).
Nov 13 '05 #2

"Bas Cost Budde" <b.*********@heuvelqop.nl> wrote in message
news:cm**********@news2.solcon.nl...

I am very glad to see an application of AI here. I did a university study
in the field, but chose my work in other directions.


[Translation: "I am currently cleaning the computer science lab on nights
and weekends."]
Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Peter Kirk | last post by:
Hi there I am looking at using a thread-pool, for example one written by Jon Skeet (http://www.yoda.arachsys.com/csharp/miscutil/). Can anyone tell me if this pool provides the possibility to...
6
by: Paul | last post by:
Hi just wondering if there is a way to set up a wait for object in vb.net as if a put a delay in between the fill and the databind things work ok, but if not the page is reloading without the...
6
by: Jeremy Chapman | last post by:
I have a button on my page which when clicked redirects to another page. on the page load of the page that I've redirected to, there is a long query. What I want to do is with dhtml, display test...
4
by: Shelby | last post by:
Hi, if I launch another application in my vb code, how can I wait for it to complete first? Dim myProcess As Process myProcess = New Process myProcess.Start("test.exe") ' I want to wait for...
12
by: Perecli Manole | last post by:
I am having some strange thread synchronization problems that require me to better understand the intricacies of Monitor.Wait/Pulse. I have 3 threads. Thread 1 does a Monitor.Wait in a SyncLock...
16
by: Thirsty Traveler | last post by:
I would like to create a test harness that simulates multiple concurrent users executing an individual thread. I would like this to be determined at runtime when the user specifies the number of...
1
by: Damien Byrne | last post by:
Hello, I am new to python. I am using the os module to run a command in a bashshell. However I need this process to complete before continuing. Is there a command that will wait for this process...
7
by: josh | last post by:
Hi, I'm trying to write some code to show a little div (with an image is sayng is loading...) that is showed when the page is loading... the events I can use are onbeforeunload, onunload and...
25
tusovka
by: tusovka | last post by:
Because Firefox and IE render web pages differently, I cant get the same results. I working with many embedded tables that contain javascript functionality inside. What I have is a table that...
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,...
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...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.