[AccessD] A2K: Query parameters disappear in break mode

Brett Barabash BBarabash at TappeConstruction.com
Thu Jun 12 08:35:04 CDT 2003


Yep, that's it!
Normally I don't use this approach (i.e. directly referencing controls in
queries).  However, this was for a quick and dirty set of data conversion
queries, and we needed to plug the date range into it.
Thanks for the advice.

-----Original Message-----
From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com]
Sent: Thursday, June 12, 2003 8:26 AM
To: accessd at databaseadvisors.com
Subject: Re: [AccessD] A2K: Query parameters disappear in break mode


Brett:
 
Are you referencing the control directly in the criteria line of the QBE -
Forms!frmXyz!ctl123?  I can't remember why but I always had such trouble
getting values from controls off of forms and into my queries that I changed
the criteria to reference a global function which returns the value of the
control.  Maybe that will dodge around the problem instead of solving it.
 
HTH,
 
Rocky
 

----- Original Message ----- 
From: Brett Barabash <mailto:BBarabash at tappeconstruction.com>  
To: 'accessd at databaseadvisors.com' <mailto:'accessd at databaseadvisors.com'>  
Sent: Tuesday, June 10, 2003 2:12 PM
Subject: [AccessD] A2K: Query parameters disappear in break mode

My colleague ran across a strange problem in Access 2000, and I can't seem
to find anything on any of the reference sites that mention this behavior:
 
Created an append query that references form controls as it's criteria
(start/end dates).
Set a breakpoint in the command button event procedure.
With the code in break mode, he tried opening the query manually, and no
records were returned.
After a little troubleshooting, we found that the referenced form control
values disappear in the query if the form's code is in break mode!
 
What a PITA!  Has anyone else run across this problem?

Brett Barabash, MCP 
Tappe Construction, Co. 
Eagan, MN 
bbarabash at tappeconstruction.com 
(651) 256-6831 

"Computer games don't affect kids; I mean if Pac-Man affected us as kids,
we'd all be running around in darkened rooms, munching magic pills and
listening to repetitive electronic music." - Kristian Wilson, Nintendo,
Inc., 1989.

 


----------------------------------------------------------------------------
----------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.

Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software in conjunction with 
virus detection software.




  _____  




_______________________________________________
AccessD mailing list
AccessD at databaseadvisors.com
http://databaseadvisors.com/mailman/listinfo/accessd
Website: http://www.databaseadvisors.com



--------------------------------------------------------------------------------------------------------------------
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom
they are addressed.
If you have received this email in error please notify the
originator of the message. This footer also confirms that this
email message has been scanned for the presence of computer viruses.

Any views expressed in this message are those of the individual
sender, except where the sender specifies and with authority,
states them to be the views of Tappe Construction Co.

Scanning of this message and addition of this footer is performed
by SurfControl E-mail Filter software in conjunction with 
virus detection software.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://databaseadvisors.com/pipermail/accessd/attachments/20030612/0e18ee76/attachment-0001.html>


More information about the AccessD mailing list