I created an Access report 4 years ago using Access 2003 that is not bound to a query but using VBA to create SQL record source and also perform sorting - all based on user-selected fields and values they type into my dialog form (e.g. Accounting key contains ....) and Sort By ... (combobox). This report has been used very successfully in Access 2003 and 2007. But now our group is getting Office 2010 (32-bit) and the vba OrderBy and OrderByOn properties of the report are not working. The VBA statements are like this:
Me.OrderBy = "TotalTrans." & strSort1 & ", TotalTrans." & strSort2
Me.OrderByOn = True
I've looked on web and read about "Changes in Access 2010". The only change that seems relevant is the Registry has dropped VBA 6.0 and now includes only VBA 7.0.
Can anyone shed some light on why I can't sort (order) my records using VBA code that was used in 2007 version?
Thanks in advance for any help.
Jeff
Me.OrderBy = "TotalTrans." & strSort1 & ", TotalTrans." & strSort2
Me.OrderByOn = True
I've looked on web and read about "Changes in Access 2010". The only change that seems relevant is the Registry has dropped VBA 6.0 and now includes only VBA 7.0.
Can anyone shed some light on why I can't sort (order) my records using VBA code that was used in 2007 version?
Thanks in advance for any help.
Jeff