Link to home
Start Free TrialLog in
Avatar of Rayne
RayneFlag for United States of America

asked on

Open Table to edit in VBA

Hello,

here is a code

    Dim rs As Recordset
    Set rs = CurrentDb.OpenRecordset("tblproduct2000")

     hideFlag = Application.DLookup("Scol1", "ARR2", "iCode = " & Chr(34) & rs.Fields(0) & Chr(34))
        If hideFlag <> "" Then
           ' Stop
            rs.Fields(10).Value = hideFlag
Bu i am getting an error saying it cant edit....what am i missing?

Thank you
error-Access.png
SOLUTION
Avatar of unknown_routine
unknown_routine
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of IrogSinta
IrogSinta
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Rayne

ASKER

Thank IrogSinta and UnknownRoutine
Thank you :)