karatelung
Registered User.
- Local time
- Today, 12:59
- Joined
- Apr 5, 2001
- Messages
- 84
The double-click part of this is written in DAO. I need to covert it to ADO to work with our SQL Server 200 backend. Can anyone help?
It's a lookup form. When an item in the list is double-clicked, a form is opened to the specific record.
Thank you. Hopefully with this knowlege, I'll be able to rework most of the others myself.
It's a lookup form. When an item in the list is double-clicked, a form is opened to the specific record.
Private Sub Form_Load()
With Me.List0
.RowSource = "SELECT identification,lastname + ', ' + Coalesce(firstname, ' ') FROM [foster parents] " & _
"WHERE identification IS NOT NULL AND active = 1 Order By lastname, firstname"
.ColumnCount = 2
.ColumnWidths = "0;.75 in;"
End With
End Sub
Private Sub List0_DblClick(Cancel As Integer)
Dim CustForm As Form
Dim Cust As DAO.Recordset
DoCmd.OpenForm FormName:="frmARV"
Set CustForm = Forms("frmARV")
Set Cust = CustForm.RecordsetClone
Cust.FindFirst "identification = " & Me.List0
CustForm.Bookmark = CustForm.RecordsetClone.Bookmark
End Sub
Thank you. Hopefully with this knowlege, I'll be able to rework most of the others myself.