Grid Link Not Passing Parameter to Form

I have a grid and created a new application link to a form. When I click on the pencil in the grid row to open it, the form opens but it is not using the parameters that should have been passed from the form. Is there some trick to getting this to work?

I have the same type of relationship from a calendar entry and I’m having the same problem. My guess is it’s something to do with the form.

Ok I solved it. My primary key on the form is defined in the table as integer. When adding a new record the primary key is calculated by the database (auto increment). Whenever I unchecked New or Update, SC reset them back to on. So decided to change the field to a label. It appears this is what caused the form to not use the passed parameters as a key to retrieving the record. Odd behavior.