There's no exactly the same subform in VB. Instead try to run DataForm wizard and get an example of Master/Detail recordset