G
gryffin
Guest
hello what im trying to do is create a timetable via a report like this:
in the database i have stored wether its morning evening or night, and i have the date stored, and i can use =Format([date],"dddd") to get the day from this date however im finding it hard to pace the correct day in the correct day area
i tried using a textbox under monday and having
test=Format([date],"dddd") =If test = "monday" and slot = "Morning" then ...insert date, customer name etc...
End if
and have that for every area ie. tuesday evening, wedensday morning etc, however that code is definitly not right, can anyone tell me a better way to do it or please show me how to fix the code (i do not know how to place the if after the day detection thing)
thanks
Code:
monday tuesday wedensday
morning
evening
night
in the database i have stored wether its morning evening or night, and i have the date stored, and i can use =Format([date],"dddd") to get the day from this date however im finding it hard to pace the correct day in the correct day area
i tried using a textbox under monday and having
test=Format([date],"dddd") =If test = "monday" and slot = "Morning" then ...insert date, customer name etc...
End if
and have that for every area ie. tuesday evening, wedensday morning etc, however that code is definitly not right, can anyone tell me a better way to do it or please show me how to fix the code (i do not know how to place the if after the day detection thing)
thanks
Last edited: