Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tagging Records in a Continuous Form 1

Status
Not open for further replies.

maxhugen

Programmer
May 25, 2004
498
AU
In a continuous subform, I display records based on a DISTINCT query. Because it's distinct, each row does not include a record ID.

Does anyone know of a way to add a checkbox (or similar), so that a user can select any of the records, which will then be used to create new records via code?

I prefer to use a subform to a list, as it features lots of column sorting and filtering functions.

MTIA


Max Hugen
Australia
 
You may consider a command button (in the header or footer section of the subform) dealing with the current record's values.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
True. However, I'd really like to have something like a pick list - check x number of records, then click a button to do the action.

Max Hugen
Australia
 
Either use a multiselect listbox or bind your subform to a temporary table.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
If you use the listview there are a few good faqs on this forum for loading and formatting.
 
Thanks MajP, it's probably as close as I can get to what I need.

Incidentally, do you know where to obtain a *working" copy of the help files for the ocx? I've tried cmctl198.chm and cmctl198.chi that I eventually found, but they don't work.


Max Hugen
Australia
 
Great, looks useful! Now to see if I can make sense of it all :)

Max Hugen
Australia
 
Make sure to read the following
faq702-6025
faq702-6026
faq702-6027
 
Hi MajP, the ListView control is working in most aspects, but I'm having an issue with the sorting. The code I'm trying to use is:

Code:
Private Sub ItemList_ColumnClick(ByVal ColumnHeader As ColumnHeader)
    ItemList.SortKey = ColumnHeader.Index - 1
End Sub

However, I'm getting a compile error "Procedure declaration does not match description of event or procedure having the same name."

Have you any idea what I might be doing wrong pls?


Max Hugen
Australia
 
ByVal ColumnHeader As Object
not
ByVal ColumnHeader As ColumnHeader
 
Thanks again, working AOK now! (I got that syntax directly from the Windows Controls Help File!)

Max Hugen
Australia
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top