B
Bob
Hello:
I'm building a simple windows database application that has two tables with
One to One relationships on MS Access tables.
I know what your thinking. Why not just use one table? because MS Access
has a field count limitation of 255 and my table would have 327 fields so I
have no choice.
I'm using two Data adapters that generate a single DS with a relationship
build on the ClientID fields.
I dont' wish to use a datagride because the customer doesn't want it.
I can't figure out how to make my app populate the fields in my form with
the child data when the dataset loads and moves to the next record.
Below is what I have and it works ok:
Me.BindingContext(objdsClients, "ClientsMain").Position =
(Me.BindingContext(objdsClients, "ClientsMain").Position +
1)Me.BindingContext(objdsClients, "ClientsPage01").Position =
(Me.BindingContext(objdsClients, "ClientsPage01").Position + 1)
But as you know, it can quickly cause problems later if the child table
doesn't have a child record added for some reason like a power failur or
something else.
I built the relationship in Query Designer
Any help would be appriciated
TIA
Bob
I'm building a simple windows database application that has two tables with
One to One relationships on MS Access tables.
I know what your thinking. Why not just use one table? because MS Access
has a field count limitation of 255 and my table would have 327 fields so I
have no choice.
I'm using two Data adapters that generate a single DS with a relationship
build on the ClientID fields.
I dont' wish to use a datagride because the customer doesn't want it.
I can't figure out how to make my app populate the fields in my form with
the child data when the dataset loads and moves to the next record.
Below is what I have and it works ok:
Me.BindingContext(objdsClients, "ClientsMain").Position =
(Me.BindingContext(objdsClients, "ClientsMain").Position +
1)Me.BindingContext(objdsClients, "ClientsPage01").Position =
(Me.BindingContext(objdsClients, "ClientsPage01").Position + 1)
But as you know, it can quickly cause problems later if the child table
doesn't have a child record added for some reason like a power failur or
something else.
I built the relationship in Query Designer
Any help would be appriciated
TIA
Bob