Martyh
Registered User.
- Local time
- Today, 03:16
- Joined
- May 2, 2000
- Messages
- 196
Hi all,
Here is in nutshell what I done and the problem. Could somebody help me out?
1) I Have opened a form called “Car Rental”
2) I Have chosen a control which causes opening of another form “All Markets”
Explaination: “All Markets” is a form which allows you to choose which markets you are going to have within the car rental form.
Eg a complete list of cities in Canada with an “X” (or not) beside them giving you the choice of including (or excluding them from the “Selected Market”.
3) I have also developed a relationship between the tables displayed by “Car Rental” and “All Markets” - a simple one (tblMarket) to many (tblCarRental) companies relationship.
Explaination: The “Selected Market” are used in the “Car Rental” form to calculate several “indices” and is required to display on the screen the market along with the price. It does this in a list control called “lstResult” located on the "CarRental" form.
Here is my code snippet from the close event of the “All Markets” screen.
----------------------------------
Private Sub cmdCloseCM_Click()
' just to make sure that the data has passed from the form to the database
Me.Requery
'then the requery for the main form -- CarRental
Forms!CarRental!lstResult.Requery
'the rest is self explained
DoCmd.Close
End Sub
-----------------------------------
Question: Now for my problem. When I go to close the “All Markets” screen, I can’t get the “Car Rental” form to update.
I thought that this “Requery” should do the trick --- I have attempted all the other “re’s” including repaint and recalc. However nothing seems to work.
H E L P !!!
Here is in nutshell what I done and the problem. Could somebody help me out?
1) I Have opened a form called “Car Rental”
2) I Have chosen a control which causes opening of another form “All Markets”
Explaination: “All Markets” is a form which allows you to choose which markets you are going to have within the car rental form.
Eg a complete list of cities in Canada with an “X” (or not) beside them giving you the choice of including (or excluding them from the “Selected Market”.
3) I have also developed a relationship between the tables displayed by “Car Rental” and “All Markets” - a simple one (tblMarket) to many (tblCarRental) companies relationship.
Explaination: The “Selected Market” are used in the “Car Rental” form to calculate several “indices” and is required to display on the screen the market along with the price. It does this in a list control called “lstResult” located on the "CarRental" form.
Here is my code snippet from the close event of the “All Markets” screen.
----------------------------------
Private Sub cmdCloseCM_Click()
' just to make sure that the data has passed from the form to the database
Me.Requery
'then the requery for the main form -- CarRental
Forms!CarRental!lstResult.Requery
'the rest is self explained
DoCmd.Close
End Sub
-----------------------------------
Question: Now for my problem. When I go to close the “All Markets” screen, I can’t get the “Car Rental” form to update.
I thought that this “Requery” should do the trick --- I have attempted all the other “re’s” including repaint and recalc. However nothing seems to work.
H E L P !!!