murray83
Games Collector
- Local time
- Today, 12:07
- Joined
- Mar 31, 2017
- Messages
- 845
Code:
DoCmd.RunSQL ("Update MTMPM set [PM Shift] = txtMTM.value, [PM Shift1] = txtMTM2.value , [PM Shift2]=txtMTM3.value, [PM When] = DateTrim.value, [PM Who] = txtUserLookup.value where [PM When] = DateTrim.value")
above is my code and it works, so whats the problem you say. Well it works a bit to well and not in the fashion i would like
see before the user presses update, he or she would of already done this
Code:
DoCmd.RunSQL ("INSERT INTO MTMPM ( [PM Shift], [PM Shift1], [PM Shift2], [PM When], [PM Who] )VALUES (txtMTM.value, txtMTM2.Value, txtMTM3.value, DateTrim.value, txtUserLookup.value)")
so what i would like my update to work is just add/stick it on the end of the current records in table, part of me thinks this would be done by an Append but can only find that in query
please see attached and many thanks ( the code for the above is located in the MTM_Info form )