The easiest way is to use the double-click event on the field (person's name) Private Sub YourField_DblClick(cancel as integer) Dim stDocName As String Dim strWhere As String
stDocName = "Your Form Name" strWhere = "[Person] = " & "'" & Me.YourField & "'"
DoCmd.OpenForm stDocName, , , strWhere
end sub
Damon
"mugziegumz via AccessMonster.com" <u47747[ at ]uwe> wrote in message news:8dbe168bf2c74[ at ]uwe...
[Quoted Text] > Brand new with access- > How can I create a command in datasheet form to open another form? Is this > possible? I tried doing the command in datasheet view/form but it didn't > work. > > I'd like to create a command next to each person's name. So if I clicked > on > their last name in datasheet view-it'd open to a new form with lots more > detail. > Step by step instrucitons please! > > -- > Message posted via AccessMonster.com > http://www.accessmonster.com/Uwe/Forums.aspx/access-formscoding/200811/1>
|