I receive the error message while creating the input tables:
Syntax Error in INSERT INTO statement: IN, mWriteInputFiles.wgn
--------
So, I checked the databases under Edit Swat Inputs. Under the weather files database I receive this error for every one of the 29 user-defined weather stations that I input into the SWAT2012 mdb file.
An error box with this message appears when I click on the weather station:
Conversions from type 'DBNull' to type 'String' is not valid
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.InvalidCastException: Conversion from type 'DBNull' to type 'String' is not valid.
at Microsoft.VisualBasic.CompilerServices.Conversions.ToString(Object Value)
at SWAT_InputFileEdit.frmUserWgnEdit.lstWeather_SelectedValueChanged(Object sender, EventArgs e)
at System.Windows.Forms.ListControl.OnSelectedValueChanged(EventArgs e)
at System.Windows.Forms.ListBox.OnSelectedValueChanged(EventArgs e)
at System.Windows.Forms.ListBox.OnSelectedIndexChanged(EventArgs e)
at System.Windows.Forms.ListBox.WmReflectCommand(Message& m)
at System.Windows.Forms.ListBox.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
I do not have any values input for 1/2 hour rainfall rate.
Any ideas?