|
Subject:
|
Open & save 1 frm witout closing the prvs frm
|
|
Posted By:
|
anukagni
|
Post Date:
|
1/9/2006 5:56:50 AM
|
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
|
|
Reply By:
|
penta
|
Reply Date:
|
1/9/2006 8:02:39 AM
|
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
|
|
Reply By:
|
RuralGuy
|
Reply Date:
|
1/9/2006 10:40:40 AM
|
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.
|
|
Reply By:
|
anukagni
|
Reply Date:
|
1/10/2006 1:42:58 AM
|
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'
|