The best thing is probably to have a combobox on the userform into which you
load the data from a table or query in the Access Database.
The following code can be used to load either a listbox or a combobox
Private Sub UserForm_Initialize()
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim NoOfRecords As Long
' Open the database
Set db = OpenDatabase("D:\Access\ResidencesXP.mdb")
' Retrieve the recordset
Set rs = db.OpenRecordset("SELECT * FROM Owners")
' Determine the number of retrieved records
With rs
.MoveLast
NoOfRecords = .RecordCount
.MoveFirst
End With
' Set the number of Columns = number of Fields in recordset
ListBox1.ColumnCount = rs.Fields.Count
' Load the ListBox with the retrieved records
ListBox1.Column = rs.GetRows(NoOfRecords)
' Cleanup
rs.Close
db.Close
Set rs = Nothing
Set db = Nothing
End Sub
Then you use the .BoundColumn property of the Combobox to specify the column
that contains the required data.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
> hello!
> I like search from a userform in word one valor in access table. The
> userform demand a number and with this, consult an access table and
> recover data to insert in the userform but i not able to programming this
>
> thanks in advance and sorry for my bad english
SAM S.L - 02 Oct 2007 08:29 GMT
Ok.
Thank you
> The best thing is probably to have a combobox on the userform into which
> you load the data from a table or query in the Access Database.
[quoted text clipped - 35 lines]
>>
>> thanks in advance and sorry for my bad english