General discussion

Locked

Access like table in VB6

By Craig Shepherd ·
In Access I can use the lookup wizard and I get a combo box for that field.

Is there any way to do this with the DataGrid or is there a thrid party control that will let me do this in VB6?

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Access like table in VB6

by andrew In reply to Access like table in VB6

You can do this with the standard VB combo box. The simplest way is to add a Data control to the form (setting its DatabaseName & RecordSource properties to point to your Access DB & Table), then set the DataSource property of the Combo to the name of the Data control. This will bind the Combo to the Access table, automatically populating it.

Many other VB controls (including the DataGrid) can be data-bound in this manner.

This method is simple, but not flexible. I prefer to write ADO-based methods for populating controls like combos.

Collapse -

Access like table in VB6

by Craig Shepherd In reply to Access like table in VB6

So do you have an ADO based control which will allow me to do what I want

Collapse -

Access like table in VB6

by Craig Shepherd In reply to Access like table in VB6

This question was closed by the author

Back to Web Development Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums