Hi folks
I have developed a project in access as a backend and excel as a frontend so all the coding is in excel/vba.
I am writing the following function but becvause I have to refer a table in access database , I need to open the recordset and use that table name in the dmax statement. Please see the code below:
I have a problem in code in red colour as tblbatchdetails is a table in access so how can we connect the frontend to this table. If I keed the access database opened while running the userform then it works fine but if the access database is closed and we try to tun the userform then it gives reserved error 2950 in dmax statement.![]()
Please Login or Register to view this content.
Thanks for any help.
Aman
Bookmarks