Ok, let me answer all your questions one by one, then provide my own! ...
Reptile, first of all, I'm working with recordsets normally, without using any SQL. VB provides an ActiveX control (Data Control) which enables you to connect to an external DBMS (Database Management System), such as Microsoft Access. So the Data Control is what I use to connect to MS Access, then I connect various Text Boxes to this Data Control. The Data Control calls upon the fields that are in the table that's located in MS Access and attaches their value to the textbox, then you may call the actual values from the table and place them in the Text Boxes on your form. All this can be done during Design Time.
I may have gone into more detail than I should have...
Anyways, moving on to Hobbes68... See, I don't actually have only one Text Box on my form. I have about 46 or so, but in my example I just used a simplified version by saying there's only 1 Text Box. Speaking of which, what you said confused me a little. So what if there's only 1 Text Box? Why WOULDN'T you be able to sort just one text box alphabetically? You may have just one entry in the Text Box with the first entry starting with the letter 'Z', and the next entry starting with the letter 'A' and you want to sort in ascending order.
Finally, CodeWarrior76... I tried using your idea:
rs.Sort = "[fieldname] ASC"
Yet it doesn't even do anything for some reason. Not even an error message. I put it after the Update command, which updates the database. Like this:
datPersonal.Recordset.Sort = "fldLastName ASC"
That's what I tried yet it didn't do anything...
I appreciate all your help people, thanks.
Enter your message below
Sign in or Join us (it's free).