Hi Zulema. Code opening the form seems OK - assuming that your ID field SS# is indeed a string (going by the single quotes before and after the reference to the field in the Docmd.Openform line).
One other possible cause of this apparent 'loss' of data is if the form frmSPS INFOtbl is opened in Add mode instead of Edit. Open the form in design mode and check its Allow Edits property, which should be set to Yes. If it is set to No and Allow Additions set to Yes you will be able to add new records, but not see or edit any existing data.
If the properties are OK then check directly at table level whether or not data is being stored in your spouse info table. If it isn't, either form frmSPS INFOtbl is bound to a non-updatable source, or the control you are updating is not bound to an underlying field, or the record filtering on the SS# field is not matching any existing records.
One other thing: as you are using a separate table for spouse information, if you are adding new staff records and then adding spouse data from within that entry on your staff form you must save the staff record before opening the spouse form. Otherwise, there is not yet an employee reference to match.
The record save can be achieved by adding
- if me.dirty then me.dirty=false
before the Docmd.openform statement.
-Stewart