DataGrid in VBA

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am using the classic DataGrid in a VBA project and need to set the
properties. In VB6, a person can right-click on the grid and get the propery
pages. I cannot get this to work in VBA - it just shows the properties
window in the IDE. I got it to work once but it does not work now. I cannot
remember the steps I followed to get this to work. Can someone tell me how
to do this?

Plus, is there a way to set the datasource property on the DataGrid so we
can retrieve fields and set the properties of the columns, like width,
heading, etc.?
 
You have posted to the Microsoft Access group, so to use the DataGrid
control in MS Access, you would be in Form Design view. Simply right-mouse
the rectangular control and find the Data Grid Object > Properties. If
"Properties" is not a menu item, then it cannot be done.
 
Back
Top