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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I see new data immediately in a form ?

Status
Not open for further replies.

acnovice

Programmer
Joined
Jan 27, 2005
Messages
100
Location
US
Hi,

I have a form called "CustInquiry" that has a Tab Control with 2 pages in it. One for "InquiryStatus"--schedule, another for "InquiryDetails"--data entry.
After I enter data to "InquiryDetails, schedule shows up to "InquiryStatus".

However, the data that I just entered to "InquiryDetails" doesn't show up immediately from "InquiryStatus".

I have to close the form "CustInquiry" and reopen it...then new data shows up "InquiryStatus".

How do I see data that I just entered immediately from a form without close the form ?

I'm using subform in "InquiryStatus" and Record source from "query" that I created.
 
Have you tried the classical methods ?
Refresh
Requery
RecordSource = RecordSource
...

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
In the AfterUpdate event of the InquiryDetails subform (is there a subform on that page?), tell the parent form to requery the status subform:
Code:
Private Sub Form_AfterUpdate()
  Forms!CustInquiry!InquiryStatus.Form.Requery
End Sub
*** If you use the Refresh action, any new records won't show up and deleted records won't disappear.

VBSlammer
redinvader3walking.gif

"You just have to know which screws to turn." - Professor Bob
 
Hi Guys,

It works fine... thank you.
You guys have a good day today.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top