Data Access from 2 Forms (VB)

Moishe

Member
Joined
May 30, 2003
Messages
24
Data Access from 2 Forms

Hi All,
I have a datagrid in oneform and a list box in the other form
Does anyone know how can I put an item from the list box into the selected cell in the datagrid in the other form upon pressing enter?
I have a short cut which brings out that listbox in a particular cell in the datagrid.

Thanks
 
This is how you retrieve the selected item from the a listbox:
(the contents of the list box is a collection of objects)

Dim s As String
s = Me.lbx.SelectedItems(0).ToString

Regards,

georg
 
Back
Top