Hi,
There is a error in the next piece of program.
The error is the red text below
strMySql_zoekenOpId = "SELECT tbldrager.Id, tbldrager.Naam, tbldrager.Soort, tbldrager.Aantal, tbldrager.Formaat, tbldrager.Kostprijs, tbldrager.LEVERANCIER, tbldrager.Verpakking " & _
"FROM tbldrager " & _
"WHERE (((tbldrager.Id)= [Formulieren]![frm_gegevensinvoer]![txtId])) " & _
"ORDER BY tbldrager.Naam DESC"
Dim myCnn As ADODB.Connection
Set myCnn = CurrentProject.Connection
Dim Sqltabeldrager As New ADODB.Recordset
Sqltabeldrager.ActiveConnection = myCnn
Sqltabeldrager.Open strMySql_zoekenOpId, CurrentProject.Connection, adOpenDynamic, adLockOptimistic
Sqltabeldrager.MoveFirst
I changed the red code by a number 14.
Everything is working well. I have no error.
I use a textarea called textId.
I do something wrong.
Can anybody help me?
Thanks in advance
There is a error in the next piece of program.
The error is the red text below
strMySql_zoekenOpId = "SELECT tbldrager.Id, tbldrager.Naam, tbldrager.Soort, tbldrager.Aantal, tbldrager.Formaat, tbldrager.Kostprijs, tbldrager.LEVERANCIER, tbldrager.Verpakking " & _
"FROM tbldrager " & _
"WHERE (((tbldrager.Id)= [Formulieren]![frm_gegevensinvoer]![txtId])) " & _
"ORDER BY tbldrager.Naam DESC"
Dim myCnn As ADODB.Connection
Set myCnn = CurrentProject.Connection
Dim Sqltabeldrager As New ADODB.Recordset
Sqltabeldrager.ActiveConnection = myCnn
Sqltabeldrager.Open strMySql_zoekenOpId, CurrentProject.Connection, adOpenDynamic, adLockOptimistic
Sqltabeldrager.MoveFirst
I changed the red code by a number 14.
Everything is working well. I have no error.
I use a textarea called textId.
I do something wrong.
Can anybody help me?
Thanks in advance