|
-
December 24th, 2005, 01:28 AM
#1
Operation Is Not Allowed When The Object Is Closed
I'm passing date values as parameters to a data report. Based on the range of dates the report is supposed to show the result. But it works fine if I supplied no parameters. All my three reports work fine without parameters. Pls help me out as to why I'm getting this err. I've established connection to Access Database on Initialise Event of Dataenvironment1.
On Ok command button I've created
rspurchaseofshares.filter = FiltrVals
if Rspurchaseofshares.recordcount >0 then
rspurchaseofshares.show
endif
I'm stuck very badly.Pls help me out.
Thanking U gurus in adv
Sham
-
December 25th, 2005, 06:09 PM
#2
Re: Operation Is Not Allowed When The Object Is Closed
pls can you show your code where you acquire the data from the database
Mike
-
December 27th, 2005, 02:30 PM
#3
Re: Operation Is Not Allowed When The Object Is Closed
Hi ! The code you have shown will only show data when more then one record is there.
Code:
if Rspurchaseofshares.recordcount >0 then
rspurchaseofshares.show
endif
You have not defined rspurchaseofshares. Is that a recordset then .show doesn't fit is it a form then .recordcount doesn't fit for me if you dont give further explanation Lets think we have a record named Myrecords and rspurchaseofshares is a form
What can be said by your codse is that obviously you set params that ends up in no data. Change the code to the following
Code:
if not( MyRecrds.EOF and MyRecords.BOF) then
rspurchaseofshares.show
end if
But in fact please show more code
Jonny Poet
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|