R
Ronald Dodge
Access 2002, SP3
MDAC 2.8
Is there something about the Add, Edit and/or Update methods using DAO
recordsets that I should know about. From my understanding and what I have
seen, it looks like at times, the updating of records takes place, but other
times, it doesn't for the same people with the same forms.
In the past, I have known the EditMode property to not be showing in the
proper mode in the following situation
Put recordset in either Add or Edit mode
User update the unbound controls
Click on command button to update the DB (at this point, it would show the
EditMode property is not in the proper mode, but rather EditNone, thus
couldn't even transfer the data from the controls to the fields in the
recordset for the record that is suppose to be in EditInProcess mode).
Do I need to switch over to ADO coding to avoid these kinds of issues? I
can not use bound forms, so that's not an option. I'm already having to
similate disconnected databases like how ADO.NET is done, so the dynamic
cursor keyset isn't needed, thus bypasses that issue with regards to ADO not
allowing for a dynamic cursor keyset with a JET engine DB.
In the past, it was needed to use dynamic cursor keyset, thus given the DAO
and ADO issues above listed, that's what drove me away from Access along
with me not really being able to effectively use bound forms as at times,
the user may not know which mode to be in until after filling in the form,
thus why DBs like JDE allows for Action codes or command buttons to
determine which prior to pressing enter. For JDE it's the following:
A or 1 for Add
C or 2 for Change (Aka Edit for Access)
D for Delete (doesn't allow for the numeric value of 3 due to the danger of
delete operations)
I or 4 for Inquire
--
Sincerely,
Ronald R. Dodge, Jr.
Master MOUS 2000
MDAC 2.8
Is there something about the Add, Edit and/or Update methods using DAO
recordsets that I should know about. From my understanding and what I have
seen, it looks like at times, the updating of records takes place, but other
times, it doesn't for the same people with the same forms.
In the past, I have known the EditMode property to not be showing in the
proper mode in the following situation
Put recordset in either Add or Edit mode
User update the unbound controls
Click on command button to update the DB (at this point, it would show the
EditMode property is not in the proper mode, but rather EditNone, thus
couldn't even transfer the data from the controls to the fields in the
recordset for the record that is suppose to be in EditInProcess mode).
Do I need to switch over to ADO coding to avoid these kinds of issues? I
can not use bound forms, so that's not an option. I'm already having to
similate disconnected databases like how ADO.NET is done, so the dynamic
cursor keyset isn't needed, thus bypasses that issue with regards to ADO not
allowing for a dynamic cursor keyset with a JET engine DB.
In the past, it was needed to use dynamic cursor keyset, thus given the DAO
and ADO issues above listed, that's what drove me away from Access along
with me not really being able to effectively use bound forms as at times,
the user may not know which mode to be in until after filling in the form,
thus why DBs like JDE allows for Action codes or command buttons to
determine which prior to pressing enter. For JDE it's the following:
A or 1 for Add
C or 2 for Change (Aka Edit for Access)
D for Delete (doesn't allow for the numeric value of 3 due to the danger of
delete operations)
I or 4 for Inquire
--
Sincerely,
Ronald R. Dodge, Jr.
Master MOUS 2000