Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Dim datcmd1 As ADODB.Command
Set datcmd1 = New ADODB.Command
Set datcmd1.activeConnection = cnn1
datcmd1.CommandText = "SELECT Sum(If(IsNull(paid),0,paid) + If(IsNull(provided),0,If(paid>0,0,provided))) AS totalpaid, Billing.method AS typepaid, Billing.date, Visits.exam9 FROM Visits RIGHT JOIN Billing ON Visits.prim_key = Billing.visit_num GROUP BY Billing.date, Visits.exam9, Billing.method"
datcmd1.CommandType = adCmdText
rpt.Database.AddADOCommand cnn1, datcmd1
testTest.Open datcmd1
rpt.Database.AddADOCommand testTest.activeConnection, testTest.ActiveCommand
Set fld = rpt.Sections(3).AddFieldObject("{datcmd1.Command GroupNamedatedaily1}", 0, 0)
query = "Provider=MSDASQL.1;Extended Properties=;DATABASE=thedatabase;DRIVER={MySQL ODBC 3.51 Driver};OPTION=1 + 2 + 8 + 32 + 2048 + 16384;PWD=thepassword;PORT=3306;SERVER=555.555.55.55;UID=theuid"
rpt.Database.SetDataSource(query, rptcrjournal)