ahem.....
Dim sql1 As SQL
should this not be
Dim SQL1 As SQL
Although this may not be the probelm?
Am I being thick? You seem to have two events "Sub Activity_Create(FirstTime As Boolean)" how does this work?
This is a compile error your getting isn't it? You're not getting to code execution are you?
I think, for some reason, the Dim of SQL1 isn't getting recognised by the compiler.. Try deleting that line and re-entering it..
If I comment out the Dim of SQL1, I get the following :
Compiling code. Error
Error parsing program.
Error description: Undeclared variable 'sql1' is used before it was assigned any value.
Occurred on line: 38
If SQL1.IsInitialized = False Then
Is the dim of SQL1 recognised? If it is, is it right at the top, i.e. in the sub process_globals on line1?