Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report is not showing correct information

Status
Not open for further replies.

mrdod

Technical User
Jun 12, 2006
103
US
I have a form that asks the user if he/she would like to view a report, delete the entry, or assign as task. If he/she selects View Report then I have a bunch of small text boxes that get populated using Dlookup. Then I have a the form popping up and getting the information from the form. My problem is sometimes the form displays old information. It acts like it isn't refreshing itself.


Here is the code for opening the report
Case Is = "View Report"
DoCmd.OpenReport "rptaudit", acViewPreview
Form_frmoptions.Visible = False

Any help would be great.

Thank you.
 
OK, I did some thinking which is always scary and got it to work by deleting the form right before it's opened (in case it's still open). Not sure it makes sense but it works. Originally there is a list box with all the history, the user double-clicks the entry and the frmoptions appears prompting the user what to do next (View Report, Delete the entry, Assign the entry, etc...). So after double-clicking I made sure that frmoptions was deleted. Make sense???? Maybe I'm doing this the hard way.

Thank you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top