D
dan
Can you have more than one SQL statement in an Access
query?
I was trying to create a temporary table and populate it -
using a couple of insert into's - then select * on the
temp table, followed by a delete of the temp table.
e.g.
create table ...
insert into ...
select * ...
delete table ...
;
However, Access complains and says that the first line is
invalid, but if I only have the first line in, it accepts
it. That's no good to me. I kind of want the
functionality that a stored procedure would give. Any
suggestions??
Also, without using forms I want the following:
I have n tables:
People
Clubs
ClubMembers
ClubMembersAttendance
ClubMembersAttendance is going to be populated with dates
and times of members' attendance.
Now, when someone populates this table I have a combo box
for the name of the person and the name of the club.
These are directly related to the People and Clubs. I
have create a lookup on these fields so that you can
simply select valid values for the two fields. However,
what I really want - without using forms - is, when the
user has selected the name, then the clubs field will only
show clubs that that person is a member of. At the moment
it shows all clubs in the Clubs table.
Can this be done without using forms and event
procedures. It's a long story as to why I don't want a
form based solution but it's a good reason.
Hope you can help,
Dan.
query?
I was trying to create a temporary table and populate it -
using a couple of insert into's - then select * on the
temp table, followed by a delete of the temp table.
e.g.
create table ...
insert into ...
select * ...
delete table ...
;
However, Access complains and says that the first line is
invalid, but if I only have the first line in, it accepts
it. That's no good to me. I kind of want the
functionality that a stored procedure would give. Any
suggestions??
Also, without using forms I want the following:
I have n tables:
People
Clubs
ClubMembers
ClubMembersAttendance
ClubMembersAttendance is going to be populated with dates
and times of members' attendance.
Now, when someone populates this table I have a combo box
for the name of the person and the name of the club.
These are directly related to the People and Clubs. I
have create a lookup on these fields so that you can
simply select valid values for the two fields. However,
what I really want - without using forms - is, when the
user has selected the name, then the clubs field will only
show clubs that that person is a member of. At the moment
it shows all clubs in the Clubs table.
Can this be done without using forms and event
procedures. It's a long story as to why I don't want a
form based solution but it's a good reason.
Hope you can help,
Dan.