G
garywed
Hi.
I have a form whose fields are linked to an underlying table of
constellations and their variable stars. When the form opens it is initially
linked to the entire table-- all the stars in all the constellations. On the
form, I create a SQL query by searching on a single constellation, and I want
to be able to do this over and over again as I work through the various
constellations. I don't want to save the query-- just a temporary one in
memory while I am adding new/updating old records for the selected stars. I
can create the query OK-- the SQL works fine. But once a new query is
created, how do I link its fields up to the fields on the form, essentially
replacing the original links directly to the table. This would be like
updating the Record Source property, I guess, except that I want to do it
with VBA on the fly.
My forms and tables are all done, except for this one little thing...and I'm
new enough to VBA that I don't even know what to search for online. Any help
would be greatly appreciated!!
I have a form whose fields are linked to an underlying table of
constellations and their variable stars. When the form opens it is initially
linked to the entire table-- all the stars in all the constellations. On the
form, I create a SQL query by searching on a single constellation, and I want
to be able to do this over and over again as I work through the various
constellations. I don't want to save the query-- just a temporary one in
memory while I am adding new/updating old records for the selected stars. I
can create the query OK-- the SQL works fine. But once a new query is
created, how do I link its fields up to the fields on the form, essentially
replacing the original links directly to the table. This would be like
updating the Record Source property, I guess, except that I want to do it
with VBA on the fly.
My forms and tables are all done, except for this one little thing...and I'm
new enough to VBA that I don't even know what to search for online. Any help
would be greatly appreciated!!