Solved

Flexgrid Compare Event

Posted on 1998-12-17
1
673 Views
Last Modified: 2006-11-17
Does anyone have an example of how to use the "Compare" event of a flexgrid to sort rows. I want to eventually be able to sort by date. Any ideas?
0
Comment
Question by:gcw
1 Comment
 
LVL 8

Accepted Solution

by:
MikeP090797 earned 100 total points
ID: 1451163
Dim S1 as string, s2 as string
G1.Col=1
G1.Row = row1
S1=G1.Text
G1.Row=row2
S2=G1.Text

IF DateValue(S1)>DateValue(S2) then  cmp=-1
IF DateValue(S1)=DateValue(S2) then  cmp=0
IF DateValue(S1)<DateValue(S2) then  cmp=1



0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Problem to delete range 4 55
Window placement 17 65
change vba from autofit to 13.5 width? 4 27
VB6 - Convert HH:MM into Decimal 8 38
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now