Connecting Tech Pros Worldwide Help | Site Map

Codes for Checking Rooms Availability

 
LinkBack Thread Tools Search this Thread
  #1  
Old April 16th, 2006, 04:35 AM
oyk
Guest
 
Posts: n/a
Default Codes for Checking Rooms Availability

I have a form with, among others, controls for RoomNo., CheckInDate and
CheckOutDate. I would like to check whether the RoomNo selected is occupied
for the period as stated in CheckInDate and CheckOutDate.

I have used the OpenRecordSet method for the AfterUpdate event in the form,
as follows:

Set rs = db.OpenRecordSet ("qryRoomsAvailable",dbOpenDynaSet)

However, this does not work. When I change "qryRoomsAvailable" to "tblRooms"
the codes seem to run alright.

Can anyone help me? TQ.



  #2  
Old April 16th, 2006, 04:05 PM
Larry Linson
Guest
 
Posts: n/a
Default Re: Codes for Checking Rooms Availability



"oyk" <okt128@streamyx.com> wrote in message
news:4441c161$1_2@news.tm.net.my...[color=blue]
>I have a form with, among others, controls for RoomNo., CheckInDate and
>CheckOutDate. I would like to check whether the RoomNo selected is occupied
>for the period as stated in CheckInDate and CheckOutDate.
>
> I have used the OpenRecordSet method for the AfterUpdate event in the
> form, as follows:
>
> Set rs = db.OpenRecordSet ("qryRoomsAvailable",dbOpenDynaSet)
>
> However, this does not work. When I change "qryRoomsAvailable" to
> "tblRooms" the codes seem to run alright.
>
> Can anyone help me?[/color]

No, not likely. Your description is very vague, you don't show the code, you
don't describe the details of the error you receive, and the instruction on
which you receive it, and you don't give us a clue as to what
"qryRoomsAvailable" may do.

Essentially, you have said, "There's something wrong somewhere; how do I fix
it?"
Ross Perot, when he was running for President, used to say, "The devil is in
the details." He was paraphrasing Mies Van Der Rohe, who said, "God is in
the details." I can't promise you an answer, but if one is to be found, we
do need the details.


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.