i am implementing a car rental management system
in a check-in form:
i want that once i choose the duration of rental (in days) it adds that number (as days) to the date_of_rental (which has a default value of todays date) and display the result in the date_of_return
i used the following code in the : After update event:
but it tells me :
run-time error '5' :
invalid procedure call or argument
please give me the solution
thanx
in a check-in form:
i want that once i choose the duration of rental (in days) it adds that number (as days) to the date_of_rental (which has a default value of todays date) and display the result in the date_of_return
i used the following code in the : After update event:
Code:
Me.date_of_return = DateAdd("dd", Me.duration, Me.date_of_rental)
but it tells me :
run-time error '5' :
invalid procedure call or argument
please give me the solution
thanx