Skip to content

Commit

Permalink
Add SQL formatting query to testing database
Browse files Browse the repository at this point in the history
This query demonstrates that we can properly parse and format expressions that refer to controls. joyfullservice#457
  • Loading branch information
joyfullservice committed Nov 15, 2023
1 parent 62fe0fd commit 1c3bce6
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 1 deletion.
47 changes: 47 additions & 0 deletions Testing/Testing.accdb.src/queries/qryFormControl.bas
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
Operation =1
Option =0
Begin InputTables
End
Begin OutputColumns
Alias ="FormControl"
Expression ="[Forms]![frmColors]![Text18]"
Alias ="TestExpression"
Expression ="IIf([Forms]![frmVCSInstall]![chkUseRibbon],Eval(\"True\"),False)"
End
dbBoolean "ReturnsRecords" ="-1"
dbInteger "ODBCTimeout" ="60"
dbBoolean "OrderByOn" ="0"
dbByte "Orientation" ="0"
dbByte "DefaultView" ="2"
dbBoolean "FilterOnLoad" ="0"
dbBoolean "OrderByOnLoad" ="-1"
dbByte "RecordsetType" ="0"
dbBoolean "TotalsRow" ="0"
Begin
Begin
dbText "Name" ="FormControl"
dbLong "AggregateType" ="-1"
dbInteger "ColumnWidth" ="1590"
dbBoolean "ColumnHidden" ="0"
End
Begin
dbText "Name" ="TestExpression"
dbInteger "ColumnWidth" ="1815"
dbBoolean "ColumnHidden" ="0"
dbLong "AggregateType" ="-1"
End
End
Begin
State =0
Left =0
Top =0
Right =1368
Bottom =856
Left =-1
Top =-1
Right =1352
Bottom =577
Left =0
Top =0
ColumnsShown =539
End
7 changes: 7 additions & 0 deletions Testing/Testing.accdb.src/queries/qryFormControl.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
SELECT
[Forms]![frmColors]![Text18] AS FormControl,
IIf(
[Forms]![frmVCSInstall]![chkUseRibbon],
Eval("True"),
False
) AS TestExpression;
2 changes: 1 addition & 1 deletion Testing/Testing.accdb.src/vcs-options.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"Info": {
"AddinVersion": "4.0.26",
"AddinVersion": "4.0.27",
"AccessVersion": "14.0 32-bit"
},
"Options": {
Expand Down

0 comments on commit 1c3bce6

Please sign in to comment.