To return the result in a List Box, use the following Code:
Assumptions:
You are getting the number of days a guest is staying from a Text Box named "StayLength"
You are getting the guest's arrival date from a Text Box named "ArrivalDate"
Your List Box is called "AvailableDates"
Code:
' Empty out our List Box
Me!AvailableDates.RowSource = ""
' Run this loop once for each day the guest is staying
For i = 0 To (Me!StayLength - 1)
If i = 0 Then
' If this is the first date, just set the RowSource of your List Box to the guest's Arrival Date
Me!AvailableDates.RowSource = Me!ArrivalDate
Else
' Otherwise, use our counter (i) to add to our Arrival Date and use that instead
Me!AvailableDates.RowSource = Me!AvailableDates.RowSource & ";" & DateAdd("d", i, Me!ArrivalDate)
End If
Next
Try putting that in the StayLength's After Update Event and see how it works for ya.
EDIT: Added bold to the names of the various Form Objects that may need to be changed.