K
KitCaz
What's the difference if I use a view or an SP for a record source? Any
processing considerations?
E.g., since I'm planning to open multiple instances of my form, I'm going to
set my record source on the fly, contributing my record key from a global
variable* so I could do either:
RecordSource="SELECT * from vw_MyView Where myKeyField=" & global_variable
or
InputParameters = global_variable
UniqueTable = "primary_table"
RecordSource = "MySP"
Any reason I should go one way or another?
* I couldn't use Where or Filter options via a form Open argument because
for multiple instancing I'm following the technique I found on-line where I
establish a form variable and create a "new" instance, so the Open statement
doesn't happen. If someone knows why I shouldn't have this problem let me
know.
processing considerations?
E.g., since I'm planning to open multiple instances of my form, I'm going to
set my record source on the fly, contributing my record key from a global
variable* so I could do either:
RecordSource="SELECT * from vw_MyView Where myKeyField=" & global_variable
or
InputParameters = global_variable
UniqueTable = "primary_table"
RecordSource = "MySP"
Any reason I should go one way or another?
* I couldn't use Where or Filter options via a form Open argument because
for multiple instancing I'm following the technique I found on-line where I
establish a form variable and create a "new" instance, so the Open statement
doesn't happen. If someone knows why I shouldn't have this problem let me
know.