Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can you auto-lookup in a list box in VB?

Status
Not open for further replies.

NeoZakz

Technical User
Jul 22, 2002
25
US
Private Sub days_after_AfterUpdate()

If IsNull(Me![Combo119]) Then
Me![Date Due] = DateAdd("d", Me![Seq], Me![Date Due])
Else

DLookup("[Miledate]", "Mile1", Me![Date Due].Value = Me![Combo119].Value) = Me![Date Due].Value = DateAdd("d", Me![Seq], Me![Date Due].Value)

End If
End Sub

The Me![Combo119] are what im trying to get to look up the values based on whats in the fields already but it keeps asking for a permanent value to lookup is there a way to get it to check whats in the list box and look that up?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top