Relationship Error/Problem

Questions and answers regarding general SQL and backend databases

Relationship Error/Problem

Postby rochard » Fri Mar 19, 2004 4:55 pm

Have 4 global fields; hotel, roomType, startDate, endDate. The hotel and room type generate a unique key for that combination (roomAssignID). What I am trying to do is to enter values in those fields and display a list of all matching rooms in a portal below. The relationship is from the search table (where the globals are) to a tblAllocations which has a record for every combination of roomAssignID and date.

In the relationship, there are three criteria:

roomAssignID = roomAssignID
startDate >= date
endDate < date

Not only is this not giving me matching records but the moment I select a value in the Hotel field, the portal populates with all matching records for that hotel; I thought this was because the previous value in the hotel field was not being cleared even though it appeared to be but that doesn't make much sense either.

TIA.
Michael Rochard
rochard
 
Posts: 142
Joined: Thu Jan 29, 2004 12:11 am

Postby jcompagner » Sun Mar 21, 2004 11:13 am

can you send an example?
Johan Compagner
Servoy
User avatar
jcompagner
 
Posts: 8833
Joined: Tue May 27, 2003 7:26 pm
Location: The Internet


Return to SQL Databases

Who is online

Users browsing this forum: No registered users and 16 guests

cron