Let me start a new thread with new error message: Too few parameter
I just used MessageBox.Show to display three variables, they all have value. Did I write cmd correctly?
Thanks.
MessageBox.Show(Environment.UserName);
MessageBox.Show(dtEastern.ToString());
MessageBox.Show(GlobalVariables.LogNote);

Edit: Does it refer to connection string parameter? But Cn.open works, and the connection string works fine on other child forms.

OdbcCommand doesn’t take named parameters. Read Remarks here: https://docs.microsoft.com/en-us/dotnet/api/system.data.odbc.odbccommand.parameters?view=dotnet-plat-ext-5.0

Thanks. So how should I modify my code for ODBC? I got below code from another thread (modified to fix my program), I mean modified from OleDbConnection to OdbcConnection

source