B
Bill H.
why does this not work:
Option Compare Database
Option Explicit
Public strSQLrecs As String
strSQLrecs = "SELECT [Qry_Union_FamilyMemberAll].[PriKey] " '(etc)
What happens when I click on any command button, I get an error msg. If I
turn the strSQLrecs assignment into a comment, all is fine again.
What I what to do is to have a public string (longish) that on my various
command buttons I can concatenate to another string and then run the
resultant sql string.
Option Compare Database
Option Explicit
Public strSQLrecs As String
strSQLrecs = "SELECT [Qry_Union_FamilyMemberAll].[PriKey] " '(etc)
What happens when I click on any command button, I get an error msg. If I
turn the strSQLrecs assignment into a comment, all is fine again.
What I what to do is to have a public string (longish) that on my various
command buttons I can concatenate to another string and then run the
resultant sql string.