J
Jeff
I'm trying to write a query (to help with a database conversion I'm
working on). There will be a new table that ties Events and Members
together. I'm trying to tie data together as much as I can
(understanding that this will not give me 100% of the results, which
will later have to entered manually.)
Currently the two tables are not in any kind of relationship. There is
an EventName on the existing Events table. I want to pull the EventID
from the Events table, if the OutingName in my query from my Members
table contains the Event Name from the Events table. Unfortunately,
the OutingName also contains other information besides just the Event
Name.
This is the query I have, but it doesn't seem to be working. What am I
doing wrong?
Thanks in advance
Jeff
SELECT [Participation Convert Query].[Member ID], [Participation
Convert Query].[First Name], [Participation Convert Query].[Last
Name], [Participation Convert Query].OutingName, [Participation
Convert Query].Volhours, [Participation Convert Query].Baseline,
[Participation Convert Query].LifeSkill, [Participation Convert
Query].StaffComment, IIf([OutingName] Like "*" & [EventName] & "*",
[Outings].[EventID]) AS EventID
FROM Outings, [Participation Convert Query];
working on). There will be a new table that ties Events and Members
together. I'm trying to tie data together as much as I can
(understanding that this will not give me 100% of the results, which
will later have to entered manually.)
Currently the two tables are not in any kind of relationship. There is
an EventName on the existing Events table. I want to pull the EventID
from the Events table, if the OutingName in my query from my Members
table contains the Event Name from the Events table. Unfortunately,
the OutingName also contains other information besides just the Event
Name.
This is the query I have, but it doesn't seem to be working. What am I
doing wrong?
Thanks in advance
Jeff
SELECT [Participation Convert Query].[Member ID], [Participation
Convert Query].[First Name], [Participation Convert Query].[Last
Name], [Participation Convert Query].OutingName, [Participation
Convert Query].Volhours, [Participation Convert Query].Baseline,
[Participation Convert Query].LifeSkill, [Participation Convert
Query].StaffComment, IIf([OutingName] Like "*" & [EventName] & "*",
[Outings].[EventID]) AS EventID
FROM Outings, [Participation Convert Query];