Movian
05-12-2017, 06:35 AM
Hey,
So just migrated from access runtime 2007 to runtime 2010 due to end of life coming later in the year and our clients having to worry about security.
mostly done with that however I am now working through the many kinks that have come up due to hacks over the years as well as changes in workflow from 2007 to 2010.
The one I am trying to resolve at the moment, is in 2007 we had a function call on each form that when you open the form checked if there was a record for a patient and added it if not (As Part of this is we also set a number of user defined default values as part of this record creation).
After the migration to 2010 it appears that access creates records for subforms at a different time/process now as our old code that worked fine in 2007, in 2010 however it creates a primary key violation when attempting to leave the sub form.
As such I removed the reference to our sub on each sub form which has resolved the primary key violation problem.
However, this also means that the user definable default system is no longer working....
As such I am thinking of two stages to this fix, the first is to go through the list of sub forms that a client uses (the list of forms used is dynamic, and speed is a factor so I would rather add records for only the forms they use). And create records for the record source of each of those forms at the time of the main record so that each form already has a record when it's opened the first time... The problem being that I would need to reference the record source for each of these forms and most of them will be closed.
So with all the pre amble out of the way the crux of my question is
Q) Is there a way to access the record source property of a form without opening the form? (note this is a .adp project)
This is the short term fix to ensure that users can continue using this feature with all the settings they have already setup with minimal time investment to get this out ASAP.
I will be reworking the user definable default system after this to actually work with the SQL table defaults... (as much as I hate the TSQL for working with that it seems like the correct way to implement this). However this will take more research on my part as well as a complete re work of certain systems so I would like to get the first iteration out to start and then take my time with this version of the fix to ensure it is done correctly.
Thanks in advance!
So just migrated from access runtime 2007 to runtime 2010 due to end of life coming later in the year and our clients having to worry about security.
mostly done with that however I am now working through the many kinks that have come up due to hacks over the years as well as changes in workflow from 2007 to 2010.
The one I am trying to resolve at the moment, is in 2007 we had a function call on each form that when you open the form checked if there was a record for a patient and added it if not (As Part of this is we also set a number of user defined default values as part of this record creation).
After the migration to 2010 it appears that access creates records for subforms at a different time/process now as our old code that worked fine in 2007, in 2010 however it creates a primary key violation when attempting to leave the sub form.
As such I removed the reference to our sub on each sub form which has resolved the primary key violation problem.
However, this also means that the user definable default system is no longer working....
As such I am thinking of two stages to this fix, the first is to go through the list of sub forms that a client uses (the list of forms used is dynamic, and speed is a factor so I would rather add records for only the forms they use). And create records for the record source of each of those forms at the time of the main record so that each form already has a record when it's opened the first time... The problem being that I would need to reference the record source for each of these forms and most of them will be closed.
So with all the pre amble out of the way the crux of my question is
Q) Is there a way to access the record source property of a form without opening the form? (note this is a .adp project)
This is the short term fix to ensure that users can continue using this feature with all the settings they have already setup with minimal time investment to get this out ASAP.
I will be reworking the user definable default system after this to actually work with the SQL table defaults... (as much as I hate the TSQL for working with that it seems like the correct way to implement this). However this will take more research on my part as well as a complete re work of certain systems so I would like to get the first iteration out to start and then take my time with this version of the fix to ensure it is done correctly.
Thanks in advance!