473,786 Members | 2,344 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2000 query not working same as Access 97

We have a report based on a query that is called from a form. Nothing
too special here.

The query has 3 coulmns that are populated directly from values
entered into entry fields on the form that calls the report using
syntax such as "StartDate: [Forms]![frmRunRprts]![tbECHStartDt]" in
the field value of the column. This also reads as
"[Forms]![frmRunRprts]![tbECHStartDt] AS StartDate" in the SQL design
view.

Under Access 97 this returns values to the query result set and as a
result the values appear on the report.

Since upgrading to Access 2000, these columns are left empty in the
query result set.

Has anybody come across this and what was your fix.
Nov 12 '05 #1
5 3130
The only problem like that I've run into was when the form controls were
based on calculations. In Access 2000 and 2002, it does not seem to be
reliable to refer to the value of a calculated control. I've even seen the
occasional instance where an unbound control might not return a value if
there was a calculated control on the form with an error. Could any of
this apply?

Another problem I've seen that's (not specific to a particular Access
version) arises when the data type of a query parameter is not
automatically determined correctly. Try explicitly adding your
form/control reference to the query parameters, and specify the data type.

On 14 Sep 2003 21:48:47 -0700, ke*********@eds .com (Ken Lindner) wrote:
We have a report based on a query that is called from a form. Nothing
too special here.

The query has 3 coulmns that are populated directly from values
entered into entry fields on the form that calls the report using
syntax such as "StartDate: [Forms]![frmRunRprts]![tbECHStartDt]" in
the field value of the column. This also reads as
"[Forms]![frmRunRprts]![tbECHStartDt] AS StartDate" in the SQL design
view.

Under Access 97 this returns values to the query result set and as a
result the values appear on the report.

Since upgrading to Access 2000, these columns are left empty in the
query result set.

Has anybody come across this and what was your fix.


Nov 12 '05 #2
TC

"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:85******** *************** *********@4ax.c om...

(snip)
The only problem like that I've run into was when the form controls were
based on calculations. In Access 2000 and 2002, it does not seem to be
reliable to refer to the value of a calculated control.


What is your workaround?

TC

Nov 12 '05 #3
On Mon, 15 Sep 2003 18:52:33 +1200, "TC" <a@b.c.d> wrote:

"Steve Jorgensen" <no****@nospam. nospam> wrote in message
news:85******* *************** **********@4ax. com...

(snip)
The only problem like that I've run into was when the form controls were
based on calculations. In Access 2000 and 2002, it does not seem to be
reliable to refer to the value of a calculated control.


What is your workaround?

TC


My usual approach is to do the calculation in code instead, and write the
value to an unbound control. I'll still use plain calculated controls as
always on reports or when they are for display only on forms.
Nov 12 '05 #4
Thanks for the suggestion Steve

I have checked this out. It does not apply in this case.

Any other ideas appreciated.
Nov 12 '05 #5
ke*********@eds .com (Ken Lindner) wrote in message news:<a9******* *************** ****@posting.go ogle.com>...
Thanks for the suggestion Steve

I have checked this out. It does not apply in this case.

Any other ideas appreciated.


Ken,

Try using a filter-expression for a docmd.openrepor t statement instead
of attempting direct form references.
referencing form-fields in the query - I think - only works when you
need some results in the form itself.
In any case the [forms]!... construct seems questionable to me.
You could make a button on the form that has an eventprocedure
containing a 'docmd.openrepo rt' using the right where-condition
filter-expression built from the form-input.

Marc
Nov 12 '05 #6

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

Similar topics

23
2694
by: JustMe | last post by:
I don't know if this has anything to do with AccessXP running on Terminal Services with Access97/2000 also installed, but here is one example of a query that does not work any longer: SELECT DLookUp("MajorCategory","AutoTypes","='1'") AS MajorCategory, PreOwned.PaintColor FROM PreOwned; When I try to run the above query I get the following error:
0
2107
by: seanseaghan | last post by:
New to this group, so greetings all! I am trying to develop query syntax in Access 2000 to accomplish the following: Imagine you are in an accounting dept. and you are working on a reconiliation of debits and credits. Say you have a table / list that is 1000s of lines long. These could be either debits or credits. Then imagine you know that a certain
2
2035
by: David C. Barber | last post by:
upsized an MDB to ADP/SQL Server 2000 under Access 2000. All the DAO code that I've changed to ADO code is working fine, HOWEVER the form Record Source itself does not seem willing to return data. I've set the Record Source to both the query, and the SQL contained within the query, and although the system pauses long enough to have gone out and retrieved the data, I can't see it. The form itself remains gray. In addition: ...
4
3537
by: James | last post by:
I have a VB windows forms application that accesses a Microsoft Access database that has been secured using user-level security. The application is being deployed using No-Touch deployment. The objective in utilizing this new deployment method is to reduce the maintenance overhead as well as making it easier for my users to setup and run the application initially. I have VS 2002, Windows XP, Access XP(2000 format). He is my problem....
3
3513
by: rhobson2 | last post by:
Hello, I wrote a database applicaiton using Access XP (2002) and everything has been working good for the client until they purchased a couple of new computers with Access 2003. The meetings form has an unbound combo box listing all the meetings in the database allowing the user to navigate between meeting records. The meetings form also has a list box that displays a list of members associated with a meeting.
0
1146
by: mainframetech | last post by:
We are having a problem with Access 2002 as opposed to Access 2000. A multi-file query was set up under 2000 and tested good. Access is connected through a link to an Oracle 9.1 database.It was installed in remote client machines working with Access2000 and it worked fine. When the query was put on an Access2002 machine, it came up with "ORA-01017 invalid logon/password", and fails. The failing machine passes other operations with the...
8
2022
by: mainframetech | last post by:
We are having a problem with Access 2002 as opposed to Access 2000. A multi-file query was set up under 2000 and tested good. Access is connected through a link to an Oracle 9.1 database. The database (mdb) was installed in remote client machines working with Access2000 and it worked fine. When the query was put on an Access2002 machine, it came up with "ORA-01017 invalid logon/password", and fails. The failing machine passes other...
6
2676
by: jsacrey | last post by:
Hello everybody, I've got a bit of a situation that I could use some guidance with if possible. I work for an auditing firm where my users audit electronic shipping data for customers to see if they've been overcharged for shipments by truck and rail carriers. 99.9% of the time, one of our auditors needs to see all data sent by a customer in datasheet view so that they can sort records in many different ways looking for duplication...
2
4090
by: acw | last post by:
On a SQL Server 2000 db I would like to setup a stored procedure that accesses couple tables and runs the extended stored procedure xp..cmdshell. The goal is to grant users with limited privileges the right to run the stored procedure but not the rights to directly access either the referenced tables or the extended stored procedure. TIA!
0
10163
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9959
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8988
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7510
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6744
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5397
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5532
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3668
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.