Skip to content

setmasterrecord

Forums Forums SIMPOL Programming setmasterrecord

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3377
    Dan Jinks
    Participant

    I have two forms in my project and I want to use the same master record for both. While the first form remains open, when opening the second form (a detail block form) in a separate app window, I fail to setmasterrecord, using the same record as the first form. Error is 905 – wrong file. I have checked in the debugger that the variable I am using is the right type and that the table name and file name are correct. Which sample program should I check to see how to do this?

    #3379
    Michael
    Keymaster

    Are both forms using the same table object? When you open each form you need to pass to it a dring of datasources and an array of tables. That ensures that the same table object is used in each case. If you don’t, what can happen is that the record object from form 1 is not a descendent of the table object from form 2, which will cause that error. If you want to share records between forms, then they must be both referring to the same table object, not opening their own.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.