PDA

Click to See Complete Forum and Search --> : access reports UNRESOLVED!


Bazzlad
Oct 23rd, 2003, 06:09 AM
are crap
im using access 2000
and the reports decide to work or not.
is there any way to make them stable?

M Owen
Oct 23rd, 2003, 09:21 AM
How are they working and then not? What is the behaviour you are seeing manifest? What are the conditions that the report is operating in? Where is the report being run?

Bazzlad
Oct 23rd, 2003, 10:29 AM
I'm running a report which draws its information from a query, the query draws its information from a form

SELECT DISTINCT [tblin].[Make], [tblin].[Phone Model], [tblin].[IMEI], [tblin].[Cost], [tblin].[Sold?], [tblin].[Sale Number], [tblin].[Price], [tblcustomer].[Customer Name], [tblcustomer].[Customer ID], [tblcustomer].[Company], [tblout].[Date]
FROM tblcustomer, tblout, tblin
WHERE ((([tblin].[Sold?])=Yes) And (([tblin].[Sale Number])=[Forms].[frmsale].[sale number].value) And (([tblcustomer].[Customer ID])=[Forms]![frmsale]![Customer ID].value) And (([tblout].[Date])=[Forms]![frmsale]![datebox].value));


It'll work 50% of the time and the others it'll say
access can't find the field FORMS reffered to in your expression
or
the open report action was cancelled.

It's driving me insane.

M Owen
Oct 23rd, 2003, 12:21 PM
Have you run a compact & repair on this DB? Also since you said the query is BASED on an OPEN form, when you run this report that form is running correct (just trying to eliminate the obvious stuff ...)?

Bazzlad
Oct 27th, 2003, 03:10 AM
Have run a compact.
Form running correct?
Je ne pas comprende!
The Data is there and the form is open....
any ideas whats wrong?

andreys
Oct 28th, 2003, 09:58 AM
Originally posted by Bazzlad


It'll work 50% of the time and the others it'll say
access can't find the field FORMS reffered to in your expression
or
the open report action was cancelled.


Exactly, look at this in your sql statement:

[Forms].[frmsale].[sale number].value


Should be:

[Forms]![frmsale]![sale number].value

Bazzlad
Oct 28th, 2003, 10:04 AM
Changed it but it still is throwing strops....

If you look here

http://www.vbforums.com/showthread.php?s=&threadid=265684

You can find a link to Download and have a look if you like...