G
GregK
I have the following code to run some SQL in the load event. The SQL should return 1 row with 1 column
Dim ID As Intege
Dim Room As New ADODB.Recordse
Dim cnn As Objec
Dim cmd As New ADODB.Comman
Dim SQLState As Strin
ID = [Forms]![PatronSelection]![Combo0
SQLState = "SELECT ReservationData.RoomCode FROM ReservationData WHERE (((ReservationData.HostTable) = ID)) GROUP BY ReservationData.RoomCode;
Set cnn = New ADODB.Connectio
Set cnn = CurrentProject.Connectio
'Set Room = New ADODB.Recordse
Room.Open SQLState, cnn, adOpenStatic, adCmdTex
I get the following error
- No value given for one or more required parameters
I am trying to set a combobox with a value that will match the records in a subform
Thank you in advance with any help.
Dim ID As Intege
Dim Room As New ADODB.Recordse
Dim cnn As Objec
Dim cmd As New ADODB.Comman
Dim SQLState As Strin
ID = [Forms]![PatronSelection]![Combo0
SQLState = "SELECT ReservationData.RoomCode FROM ReservationData WHERE (((ReservationData.HostTable) = ID)) GROUP BY ReservationData.RoomCode;
Set cnn = New ADODB.Connectio
Set cnn = CurrentProject.Connectio
'Set Room = New ADODB.Recordse
Room.Open SQLState, cnn, adOpenStatic, adCmdTex
I get the following error
- No value given for one or more required parameters
I am trying to set a combobox with a value that will match the records in a subform
Thank you in advance with any help.