Hello, friends, I have a form with a subform, I am new to ADO, made a Via ADO connection in form and subformularo with fields "master" and "child" after connect you can not register / change data, nor work ties "LinkMasterFields" and "LinkChildFields" the subform, does not filter. What to do?
the code I use is this:
want to make the ADO connection and use the formuário and subform similar to DAO, no way?
MyDatabase = "\\RECEPCAO\Sistema\Tabelas-sistema.accdb "
Dim mOrigem
mOrigem = "Select * from [tab medico] where [codigo] like " & Forms![medico entrada]![Medico]
cn1.Open "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & MyDatabase
rs1.CursorLocation = adUseClient
rs1.Open mOrigem, cn1, adOpenDynamic, adLockOptimistic
Set Forms("medico atendimento").Recordset = rs1
rs1.Close
cn1.Close
Set rs1 = Nothing
Set cn1 = Nothing