Query Sort problem!

  • Thread starter Thread starter Bob V
  • Start date Start date
B

Bob V

I am sorting a column by ascending, so how can I get the blank records/field
to the bottom, so as I have ascending then blanks,seem to recall something
about a flag???.....Thanks for any help...Bob
 
In query design view, insert a new column to the *left* of the one you are
sorting on, and enter this in the Field row:
([MyField] Is Null)

Replace MyField with your field name.

In the Sorting row under this choose Descending.
 
Thanks Alan, I have a problem now this delete is not really deleting so I
don't get the -1, what should I change this too??....Regards Bob
Private Sub cmdDeleteDate_Click()
cmbPersonlOrderSingle.value = ""
End Sub

Allen Browne said:
In query design view, insert a new column to the *left* of the one you are
sorting on, and enter this in the Field row:
([MyField] Is Null)

Replace MyField with your field name.

In the Sorting row under this choose Descending.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Bob V said:
I am sorting a column by ascending, so how can I get the blank
records/field to the bottom, so as I have ascending then blanks,seem to
recall something about a flag???.....Thanks for any help...Bob
 
Try using

cmbPersonlOrderSingle.value = Null


--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Bob V said:
Thanks Alan, I have a problem now this delete is not really deleting so I
don't get the -1, what should I change this too??....Regards Bob
Private Sub cmdDeleteDate_Click()
cmbPersonlOrderSingle.value = ""
End Sub

Allen Browne said:
In query design view, insert a new column to the *left* of the one you
are sorting on, and enter this in the Field row:
([MyField] Is Null)

Replace MyField with your field name.

In the Sorting row under this choose Descending.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.

Bob V said:
I am sorting a column by ascending, so how can I get the blank
records/field to the bottom, so as I have ascending then blanks,seem to
recall something about a flag???.....Thanks for any help...Bob
 
Thanks Douglas,,,,Great
Bob

Douglas J. Steele said:
Try using

cmbPersonlOrderSingle.value = Null


--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


Bob V said:
Thanks Alan, I have a problem now this delete is not really deleting so I
don't get the -1, what should I change this too??....Regards Bob
Private Sub cmdDeleteDate_Click()
cmbPersonlOrderSingle.value = ""
End Sub

Allen Browne said:
In query design view, insert a new column to the *left* of the one you
are sorting on, and enter this in the Field row:
([MyField] Is Null)

Replace MyField with your field name.

In the Sorting row under this choose Descending.

--
Allen Browne - Microsoft MVP. Perth, Western Australia

Reply to group, rather than allenbrowne at mvps dot org.


I am sorting a column by ascending, so how can I get the blank
records/field to the bottom, so as I have ascending then blanks,seem to
recall something about a flag???.....Thanks for any help...Bob
 

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

Similar Threads

Query Sort order! 6
Sorting Month-Year in Query 7
VBA- Excel Programming:- 0
Sorting 1
Sort order in report 2
Report sorting function 2
Access 2007 sorting problem 2
Query Ascending Question 8

Back
Top