F
funguy_007
I am using access 2003. I am attempting to setup an inventory
database for equipment that we loan out to various clients. I have
followed the Northwinds Example and everything seems to work well when
using it. Now I am trying to customize the use.
My main form is called frmLoan and is populated by a query.
I have a subform on that form that is related to a table
(tblLoanDetails).
LoanID
EquipmentID
Equipment Value
These two are joined by using LoanID in the master and child link
fields.
I have a command button on the main form and when clicked it opens a
form called frmEquipmentSearch. This form is based on an application
I borrowed from Allan Browne's website. (find as you type). This form
gets it information from tblEquipment. When you double click on the
item in the frmEquipment, I want it to add it to the subform (as this
is the item the person is signing out.)
I have been able to get it to add the record to the tblLoan Details
but it will not display in the subform.
code used on double click event:
Private Sub EquipmentName_DblClick(Cancel As Integer)
Forms!frmLoan!frmLoanSubForm!EquipmentID = Me!EquipmentID
Forms!frmLoan.SetFocus
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Forms!frmEquipmentSearch.SetFocus
End Sub
I want the subform to display the items as I need to check and make
sure I didn't miss anything. Any help would be greatly appreciated.
database for equipment that we loan out to various clients. I have
followed the Northwinds Example and everything seems to work well when
using it. Now I am trying to customize the use.
My main form is called frmLoan and is populated by a query.
I have a subform on that form that is related to a table
(tblLoanDetails).
LoanID
EquipmentID
Equipment Value
These two are joined by using LoanID in the master and child link
fields.
I have a command button on the main form and when clicked it opens a
form called frmEquipmentSearch. This form is based on an application
I borrowed from Allan Browne's website. (find as you type). This form
gets it information from tblEquipment. When you double click on the
item in the frmEquipment, I want it to add it to the subform (as this
is the item the person is signing out.)
I have been able to get it to add the record to the tblLoan Details
but it will not display in the subform.
code used on double click event:
Private Sub EquipmentName_DblClick(Cancel As Integer)
Forms!frmLoan!frmLoanSubForm!EquipmentID = Me!EquipmentID
Forms!frmLoan.SetFocus
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
Forms!frmEquipmentSearch.SetFocus
End Sub
I want the subform to display the items as I need to check and make
sure I didn't miss anything. Any help would be greatly appreciated.