I am new to this access and vba thing , but want to learn and i have a problem.I am working on a database at work and was wondering is any one can help
i have database called records and 2 fields called Date1 and Day/Night,
i have a form with a textbox called Text 2 and combo0.
Date1 and Text1 are date fields as Day/Night and combo0 are text fields
i also have a button on the form
this is a much simpler database than i have writen but it will do to explain my problem
when i enter a date into Text1 and either day or night in to combo0 i want to be able to check to see if the record already exists or not
eg date and day or date and night
the plan is if it does exist then go to that record and edit the record and if it doesnt exists go to a new record.
I have tried the findfirst and Dlooup with out sucess
i am really at the end of my tether over this.
i have attched the database so you my understand what i am on about.
If any one can help i will be so gratefull
i have database called records and 2 fields called Date1 and Day/Night,
i have a form with a textbox called Text 2 and combo0.
Date1 and Text1 are date fields as Day/Night and combo0 are text fields
i also have a button on the form
this is a much simpler database than i have writen but it will do to explain my problem
when i enter a date into Text1 and either day or night in to combo0 i want to be able to check to see if the record already exists or not
eg date and day or date and night
the plan is if it does exist then go to that record and edit the record and if it doesnt exists go to a new record.
I have tried the findfirst and Dlooup with out sucess
i am really at the end of my tether over this.
i have attched the database so you my understand what i am on about.
If any one can help i will be so gratefull