stefanDzurenda:
How can I to get the values from database rows in any variable in VBA
Your best bet is Microsoft ActiveX Data Objects (ADO). ADO is a COM library. It provides a way to handle DB connections, querying data, and updating data.
We wrote an article about Databases and MicroStation VBA.