Hi fredg,
Having problem with what you have suggested. Basically my code looks like
this:
Private Sub lisbox1_Click()
Me.listbox2.RowSource = "SELECT lngSWPurchaseNo, Format
_([dteSWDatePur],"Medium Date"), txtCompanyName, curPrice, lngSWPurInfoNo _
FROM qrySWPurchase WHERE lngSoftwareNo = " & Me.lstSWPurchase & ""
End Sub
It doesn't seem to like the extra double-quotes around the Medium Date.
ck
Use double doublequotes: if you want to include " inside a string
delimited by ", you need to use two in a row.
Me.listbox2.RowSource = "SELECT lngSWPurchaseNo, _
Format([dteSWDatePur],""Medium Date""), txtCompanyName, curPrice, _
lngSWPurInfoNo FROM qrySWPurchase WHERE lngSoftwareNo = " _
& Me.lstSWPurchase & ";"
John W. Vinson[MVP]
Join the online Access Chats
Tuesday 11am EDT - Thursday 3:30pm EDT
http://community.compuserve.com/msdevapps