M
Mark Roberts
I created a copy of my "Customer" form and called
it "Browse Customers". I set the properties to Default
View-Continuous; Views Allowed-Datasheet. I added a
command button to the "Customer" form called "Browse
Customers" so that when I want to see the entire list of
customers it opens the datasheet. Now I want to be able to
select a customer record from the datasheet, DblClick it
and open that customers form for editting. When I select a
record and DblClick it, I get the same form everytime, no
matter what customer record I selected. I am using the
following:
Private Sub Form_DblClick(Cancel As Integer)
DoCmd.Close
DoCmd.OpenForm "Customers"
End Sub
What am I missing? How do I correct this?
it "Browse Customers". I set the properties to Default
View-Continuous; Views Allowed-Datasheet. I added a
command button to the "Customer" form called "Browse
Customers" so that when I want to see the entire list of
customers it opens the datasheet. Now I want to be able to
select a customer record from the datasheet, DblClick it
and open that customers form for editting. When I select a
record and DblClick it, I get the same form everytime, no
matter what customer record I selected. I am using the
following:
Private Sub Form_DblClick(Cancel As Integer)
DoCmd.Close
DoCmd.OpenForm "Customers"
End Sub
What am I missing? How do I correct this?