Sorting Within A Form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

Relatively new to Access and limited knowledge of VBA....

I have a form (frm_Detail_By_Location) that has many fields on it. The
forms' source is a query (frm_Detail_By_Location).

I want to add a button to the form that will sort the form (while it is
open) based on the field the cursor is in.

The 'Order By' property of the form is set to
'([qry_Detail_By_Location].[Keycode]'.
 
Hi,

Relatively new to Access and limited knowledge of VBA....

I have a form (frm_Detail_By_Location) that has many fields on it. The
forms' source is a query (frm_Detail_By_Location).

I want to add a button to the form that will sort the form (while it is
open) based on the field the cursor is in.

The 'Order By' property of the form is set to
'([qry_Detail_By_Location].[Keycode]'.

Wouldn't the simplest method be to just place the cursor in that field
and then click on the A-Z or Z-A tool button? Or Right-click and
select Sort Ascending or Descending?
 
Hmmmmmmm

It worked.

I tried this earlier with no luck - oh well, thanks.



--
Andrew


fredg said:
Hi,

Relatively new to Access and limited knowledge of VBA....

I have a form (frm_Detail_By_Location) that has many fields on it. The
forms' source is a query (frm_Detail_By_Location).

I want to add a button to the form that will sort the form (while it is
open) based on the field the cursor is in.

The 'Order By' property of the form is set to
'([qry_Detail_By_Location].[Keycode]'.

Wouldn't the simplest method be to just place the cursor in that field
and then click on the A-Z or Z-A tool button? Or Right-click and
select Sort Ascending or Descending?
 

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

Back
Top