Skip to content

Commit

Permalink
Meet Manager Export was incorrectly formatting times > 60 secs
Browse files Browse the repository at this point in the history
  • Loading branch information
ruddj committed Jun 5, 2017
1 parent 68fb903 commit 8e1dc0e
Show file tree
Hide file tree
Showing 9 changed files with 103 additions and 21 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/).

## [Unreleased]

## [5.1.3] - 2017-06-05
### Fixed
- Meet Manager Export was incorrectly formatting times > 60 secs
- Installer Desktop Shortcuts

## [5.1.2] - 2017-05-08
### Added
- Meet Manager Export. New Age -> Division mapping form to allow exporting event results to Meet Manager Track and Field.
Expand Down Expand Up @@ -183,7 +188,8 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- Ordered Competitors handled differently: Table held locally. Does not delete old but overwrites them.


[Unreleased]: https://github.com/ruddj/SportsAdmin/compare/v5.1.2...HEAD
[Unreleased]: https://github.com/ruddj/SportsAdmin/compare/v5.1.3...HEAD
[5.1.3]: https://github.com/ruddj/SportsAdmin/compare/v5.1.2...v5.1.3
[5.1.2]: https://github.com/ruddj/SportsAdmin/compare/v5.1.1...v5.1.2
[5.1.1]: https://github.com/ruddj/SportsAdmin/compare/v5.1.0...v5.1.1
[5.1.0]: https://github.com/ruddj/SportsAdmin/compare/v5.0.2...v5.1.0
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ It has many [features](https://github.com/ruddj/SportsAdmin/wiki/Feature-List) w
* Age Champions
* Multiple Reports to print results
* HTML export of results
* Export of top athletes for Meet Manager Swim and Track & Field

This database requires Microsoft Access 2010 or newer. If you do not have this installed you can download the [Microsoft Access 2016 Runtime](https://www.microsoft.com/en-us/download/details.aspx?id=50040) for free.

Expand Down
9 changes: 1 addition & 8 deletions Source/forms/EnterCompetitors.bas
Original file line number Diff line number Diff line change
Expand Up @@ -1586,13 +1586,6 @@ Private Sub Event_DD_DblClick(Cancel As Integer)

End Sub

Private Sub Field114_BeforeUpdate(Cancel As Integer)

End Sub

Private Sub Field138_AfterUpdate()

End Sub

Private Sub FinalCompleted()

Expand Down Expand Up @@ -1694,7 +1687,7 @@ Private Sub Form_Current()
Me![F_Lev].BackColor = LightRed
Me![FinalStatus].BackColor = LightRed

ElseIf [Status] = 3 Then ' Completed
ElseIf [Status] = 3 Then ' Promoted
Me![F_Lev].BackColor = DarkGrey
Me![FinalStatus].BackColor = DarkGrey

Expand Down
8 changes: 6 additions & 2 deletions Source/modules/VersionDetails.bas
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@ Option Compare Database
Option Explicit


Global Const VersionNumber = "5.1.2"
Global Const VersionDate = "(8/May/2017)"
Global Const VersionNumber = "5.1.3"
Global Const VersionDate = "(5/June/2017)"

' Version 5.1.3
' (5/June/2017)
' Meet Manager Export was incorrectly formatting times > 60 secs

' Version 5.1.2
' (8/May/2017)
Expand Down
20 changes: 10 additions & 10 deletions Source/queries/MeetManagerEvents.bas
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
dbMemo "SQL" ="SELECT \"D;\" & Competitors.Surname & \";\" & Competitors.Gname & \";;\" & Compe"
"titors.Sex & \";\" & Format(Competitors.DOB,\"mm/dd/yy\") & \";\" & DLookUp(\"[M"
"code]\",\"Miscellaneous\") & \";\" & DLookUp(\"[Mteam]\",\"Miscellaneous\") & \""
";;;\" & EventType.Mevent & \";\" & CompEvents.nResult & \";M;\" & MeetManagerDiv"
"isions.Mdiv & \";\" AS EntryRecord\015\012FROM (EventType RIGHT JOIN (Competitor"
"s LEFT JOIN (Events RIGHT JOIN CompEvents ON Events.E_Code = CompEvents.E_Code) "
"ON Competitors.PIN = CompEvents.PIN) ON EventType.ET_Code = Events.ET_Code) LEFT"
" JOIN MeetManagerDivisions ON Events.Age = MeetManagerDivisions.Eage\015\012WHER"
"E (((Competitors.Gname)<>\"Team\") AND ((CompEvents.Place)<=DLookUp(\"[Mtop]\",\""
"Miscellaneous\")) AND ((CompEvents.F_Lev)=0) AND ((EventType.Include)=True) AND "
"((EventType.Flag)=True) AND ((Events.Include)=True) AND ((EventType.Mevent)<>\"\""
"))\015\012ORDER BY Competitors.Age DESC , Competitors.Surname, Competitors.Gname"
";\015\012"
";;;\" & EventType.Mevent & \";\" & Replace(CompEvents.Result , \"'\",\":\") & \""
";M;\" & MeetManagerDivisions.Mdiv & \";\" AS EntryRecord\015\012FROM (EventType "
"RIGHT JOIN (Competitors LEFT JOIN (Events RIGHT JOIN CompEvents ON Events.E_Code"
" = CompEvents.E_Code) ON Competitors.PIN = CompEvents.PIN) ON EventType.ET_Code "
"= Events.ET_Code) LEFT JOIN MeetManagerDivisions ON Events.Age = MeetManagerDivi"
"sions.Eage\015\012WHERE (((Competitors.Gname)<>\"Team\") AND ((CompEvents.Place)"
"<=DLookUp(\"[Mtop]\",\"Miscellaneous\")) AND ((CompEvents.F_Lev)=0) AND ((EventT"
"ype.Include)=True) AND ((EventType.Flag)=True) AND ((Events.Include)=True) AND ("
"(EventType.Mevent)<>\"\"))\015\012ORDER BY Competitors.Age DESC , Competitors.Su"
"rname, Competitors.Gname;\015\012"
dbMemo "Connect" =""
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="0"
Expand Down
78 changes: 78 additions & 0 deletions Source/queries/MeetManagerEventsExp.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
dbMemo "SQL" ="SELECT \"D\" AS RecType, Competitors.Surname, Competitors.Gname, Competitors.Sex"
", Format(Competitors.DOB,\"mm/dd/yy\"), DLookUp(\"[Mcode]\",\"Miscellaneous\"), "
"DLookUp(\"[Mteam]\",\"Miscellaneous\"), EventType.Mevent, Replace(CompEvents.Res"
"ult , \"'\",\":\") AS Result, CompEvents.nResult, MeetManagerDivisions.Mdiv\015\012"
"FROM (EventType RIGHT JOIN (Competitors LEFT JOIN (Events RIGHT JOIN CompEvents "
"ON Events.E_Code = CompEvents.E_Code) ON Competitors.PIN = CompEvents.PIN) ON Ev"
"entType.ET_Code = Events.ET_Code) LEFT JOIN MeetManagerDivisions ON Events.Age ="
" MeetManagerDivisions.Eage\015\012WHERE (((Competitors.Gname)<>\"Team\") AND ((C"
"ompEvents.Place)<=DLookUp(\"[Mtop]\",\"Miscellaneous\")) AND ((CompEvents.F_Lev)"
"=0) AND ((EventType.Include)=True) AND ((EventType.Flag)=True) AND ((Events.Incl"
"ude)=True) AND ((EventType.Mevent)<>\"\"))\015\012ORDER BY Competitors.Age DESC "
", Competitors.Surname, Competitors.Gname;\015\012"
dbMemo "Connect" =""
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="0"
dbByte "RecordsetType" ="0"
dbBoolean "OrderByOn" ="0"
dbByte "Orientation" ="0"
dbByte "DefaultView" ="2"
dbBoolean "FilterOnLoad" ="0"
dbBoolean "OrderByOnLoad" ="-1"
dbBoolean "TotalsRow" ="0"
Begin
Begin
dbText "Name" ="EntryRecord"
dbInteger "ColumnWidth" ="7035"
dbBoolean "ColumnHidden" ="0"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Expr1006"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Competitors.Surname"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Expr1005"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Expr1000"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Competitors.Gname"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Competitors.Sex"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Expr1004"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="EventType.Mevent"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="Result"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="CompEvents.nResult"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="RecType"
dbLong "AggregateType" ="-1"
End
Begin
dbText "Name" ="MeetManagerDivisions.Mdiv"
dbLong "AggregateType" ="-1"
End
End
Binary file modified Sports.accdb
Binary file not shown.
Binary file modified carnival/Demo-Pri 4-7 Athletics.accdb
Binary file not shown.
Binary file modified carnival/Demo-Sec Athletics.accdb
Binary file not shown.

0 comments on commit 8e1dc0e

Please sign in to comment.