basOrderBy

D

deb

I have a button on a form that I use to sort records within a listbox.
The issue is, the below field is complex.
i.e. IIf([TLNo]="TBD",[TLNo],[TLNoPrefix] & "-" & [TLNo]) AS TL
The portion of the code (response = basOrderby("TL", "asc")) does not
recognize TL

Any suggesions?


The code is...

Private Sub btnTLAsc_Click()
Dim response As Integer
response = basOrderby("TL", "asc")
Me!btnTLDesc.Visible = True
Me!btnTLDesc.Caption = "\/ TL \/"
Me!btnTLDesc.SetFocus
Me!btnTLAsc.Visible = False
Me!List4.SetFocus
End Sub
 
M

Maurice

Have you tried setting the response as a string because you are trying to put
"TL" in a integer variable or is the basOrderby a function that should return
an integer...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top