Solved Problems with navigation form

Superpat

Member
Local time
Today, 19:32
Joined
Aug 15, 2020
Messages
121
Hello,
I have a form that works perfectly: "f Operation".
I'm trying to create a navigation form: "_f_Navigation", I can't do it.
f_navi3.png

If I remove the condition from the "r_OperationSansCumul" query, the navigation form will start, but the account choice field will no longer work.
Code:
[Forms]![f_Operation].[txt_LongCompteFK]

Critere.png

But the account choice field will no longer work.
f_navi2.png


Could you help me ?

If you have an another solution
 

Attachments

here i added [Tempvars]![tvarLongCompteFK] and use it as Criteria to your query.
see the Open event of f_Operation subform.
 

Attachments

Thanks You very much to you two.
Pat Hartman, I will try later your solution.
Arnelgp, your solution is very good, just a little problem :
Code:
Compte: FindBracket([Categorie])

FindBracket.png

And I don't find any function in french about FindBracket. If was to replace :
Code:
DansChaîne(1;[Categorie];"[")
???

I resumed my old request and everything came back in order
FindBracket2.png
 
Last edited:
i did not find it in your db.
create the function on your Module:


Code:
Public Function FindBracket(Byval p As Variant) As Variant
If IsNull(p) Then Exit Function
p = Replace$(Replace$(p, "[", ""), "]", "")
FindBracket = p
End Function
 
Thanks arnelpgp, all is good.
A last thing, can you explain me :
Code:
[Tempvars]![tvarLongCompteFK]
 
Last edited:

Users who are viewing this thread

Back
Top Bottom