Quote Originally Posted by jfinn88 View Post
You are talking about binding my Msg variable correct? the parameter I'm using in my sql statement?
Yes

Quote Originally Posted by jfinn88 View Post
How do I set the conn1 connection since The prepare() fcn only takes one argument can't pass it the connection name with sql statement
You pass the QSqlDatabase handle to the QSqlQuery constructor.
Qt Code:
  1. QSqlQuery insertQuery(m_insertDataBase);
  2. insertQuery.prepare(...);
To copy to clipboard, switch view to plain text mode 

Quote Originally Posted by jfinn88 View Post
I will look at documentation on isValid(). How do I only call those methods once when the instance is not valid? little explanation on how this works be great, you got a example?
Qt Code:
  1. if (!m_insertDataBase.isValid() {
  2. // addDatabase, setDatabaseName
  3. }
To copy to clipboard, switch view to plain text mode 

Cheers,
_