am confused on how adding the time stamp field
will alleviate the problem.
Because that is how ms-access knows to update the record, or in fact if the
record is updated. This problem is especially visible when you have a
sub-form, -- you often see <error>, or some other display for the sub-from.
However, by including BOTH A PRIMARY KEY id, and ALSO A TIME STAMP field,
then ms-access is able to figure out when, or if, or not if a record needs
updating. If no time stamp field is available, then field by field
comparison occurs, and for sub-forms, it creates a mess. (eg: it don't work
well, or often not at all).
I tried this and I am getting an error message
that the time stamp field is not editable
Well, you don't need to edit the timestamp field, nor actually place it on
the form, but you MUST include it as part the query for the any form (thus
both the sub-form, and main form - ditto for the primary key id that EACH
TABLE also must have in addition to the timestamp field).
I
was getting a runtime error 3155 that states an ODBC error on a linked
table.
You mean your linked tables never worked? (then, you inherited something
that don't work at all then????). When you make the changes to the mysql
table(s) to have timestamp field, I am also suggesting that you DELETE the
table link on the ms-access side, and re-link. FURTHER, DO CHECK IF THE FORM
OR SUB FORM is based on a query, and ALSO INCLUDES BOTH THE PRIMARY KEY
FIELD AND ALSO THE TIMESTAMP field.
I originally created all my forms based on the AutoNumber being populated
right away, and now that this is no longer the case
Yes, but if you as per above make sure that both the main form has a primary
key field, and ALSO a timestamp field and, also the sub-form has these two
fields + of course the field used to link back to the main form. ms-access
has ALWAYS automatic forced a disk write when the focus changes from the
main form to the sub-form (and, I think it is more clear as to why ms-access
does this!!). Anyway, you generally need both pk + timestamp exposed - so,
once again, I stress to check the data source of both form and sub-form.
And, if you add a pk or timestamp field, then delete the table link on the
ma-access side, and re-link. Again, this needs to be done/checked for both
parent, and child table. Again, check if either form is based on a query,
and thus *might* be missing the pk, or timestamp fields that you added to
fix these issues.
At this point, it not clear what you inherited, or if you *ever* succeeded
in have any table work with ms-access. Regardless, try the above, and as
mentioned, the timestamp field is used by ms-access to determine if/when/why
to update the record.
Of couse, if you do add the timestmap field, you then delete teh link, and
re-link. You also obivliery test/try editign the table direct from the table
view in ms-access. Once that works, then you can start to test/play with the
main form. Once you can edit the main form, then go after the sub-form...(do
one step at a time)...