What error message are you getting? For that matter what are you trying to Save before closing frmSearchAppointmentsBetween2DatesBYDOCNAME?
Gina,
The o/p has posted 3 seperate posts on this in different subforums, Reports even. :banghead:
He is currently getting help from the DBguy in https://www.access-programmers.co.uk/forums/showthread.php?t=307582
I don't think its illegal to seek help from other people. The reason why I did because somehow I am not able to convey my problem to other person, I am not saying he is not able what I am saying, it is my fault. You can ignore everything I have requested as you are the owner, seems to me... And also beggers are not choosers.... Usually they knock all doors and hope someone might be able to help them....
Good luck to you
It is not iilegal to seek help from other people, but it is common courtesy to say that you are doing so. Most people post on other sites and do not mention it.
Then the help is being duplicated and people who give their time freely to help others are wasting their efforts as others have already solved the problem for them.
the DBguy knows exactly what you are trying to do as I think I do.
Stick to one thread and then everyone can see what has been tried, which is the reason I am mentioning it to Gina, as no doubt she would offer the same advice as the DBguy and anyone else who chips in.
Have you tried creating a string for the where criteria and debug.printed that as I suggested.?
Post back in that thread with the result, NOT this one.
No I am not the owner, just another user trying to stop others wasting their time offering advice that might well have already been offered in another thread.
You are not doing yourself any favours with the shotgun approach. Pick a thread and stick with it to get the best results.
That is my 5 pence.![]()
You are right I better go away.
You are right I better go away.
Something like...
If field is numeric…
Code:DoCmd.OpenForm "YourFormName", , , "[NameOfFieldFromDataSource]=" & Me![NameOfFieldOnFormOpeningFrom_ID]
If field is text…
Code:DoCmd.OpenForm "YourFormName", , , "[NameOfFieldFromDataSource]='" & Me![NameOfFieldOnFormOpeningFrom] & "'"
Dim strCriteria as String
strCriteria = "[ContactID2]=" & NZ(Me![ContactID],0)
Debug.Print strCriteria
DoCmd.OpenForm "Contact Edit", , , strCriteria