Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 9th, 2006, 06:56 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to anukagni Send a message via Yahoo to anukagni
Default Open & save 1 frm witout closing the prvs frm


 Hi,
    Here again i got an prob to save & retriving the data in an table
 I got two table Equipment Entry & Employee's Name . THe tbl Emp name is having relation with Eqp entry .I have created an from view for the both and i placed an command button in the Eqp entry from to goto Emp Name without closing the Eqp entry from,and when i store the data in the Emp Name and colsed the from after entering the name of the employee which is not in the table and when i had tried to retrive the name on Eqp Entry's (combo box of employee name),I am not able to found the data . When i closed & openning again the Eqp entry then i can found the data which i have stroed in previous.
  Any body in the group pls help me in this issue .,As soon as possible.
 Thanks in advance ,


 Bye,
 Your's
 pap
 
Old January 9th, 2006, 09:02 AM
Friend of Wrox
 
Join Date: Aug 2004
Posts: 159
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
U should try entering on the properties window of ur Employees Name form clicking on the Event Tab, to write on the OnClose property after clicking on Code Builder the following code :
       Private Sub Form_Close()
           RefreshDatabaseWindow
       End Sub
Hope it helps,
P





 
Old January 9th, 2006, 11:40 AM
Authorized User
 
Join Date: Jan 2006
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I would add code to the GotFocus event of the Eqp Entry's (combo box of employee name):

Me.ComboBoxName.Requery

using your ComboBoxName of course.

 
Old January 10th, 2006, 02:42 AM
Friend of Wrox
 
Join Date: Dec 2005
Posts: 233
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to anukagni Send a message via Yahoo to anukagni
Default

HI guy's

 i got the good result by giving refresh vb code.
 thanks 'P' . Then 'RG' the code u said me to add in the Eqp Entry 'Emp name' is not able to consume pls give me an reply then i can try & gain knowlodge in this area .
 thank you once again Penta.,

 Bye,
 I ill contact u if help needed,
 'Pap'





Similar Threads
Thread Thread Starter Forum Replies Last Post
add & Remove frm Listbox hotshot_21 ASP.NET 1.0 and 1.1 Basics 1 June 21st, 2007 05:26 PM
Display Record Frm 2Diff Tables&Without Duplicate future Classic ASP Databases 3 November 12th, 2006 12:16 PM
Use a frm based on a qry to update a tbl Brucifier Access 1 August 8th, 2006 10:06 PM
get latest record frm transaction tbl jyopallavi SQL Server 2000 1 June 9th, 2005 08:11 AM
list of all controls within a .frm file arvindkrishnan VB Components 4 February 13th, 2004 05:48 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.