Lightlancer
Programmer
hi there,
strange thing just happend,
I have 2 fields:
Me.Test
&
Me.Serienummer
both contains the same value! (12345)
When i run this code
It just runs the Else code,
its like there never the same.... but when i remove the docmd.close from the code, so the form stays open, de 2 fields are the same (12345) and still its running the Else
the code is running in the On load event, i also tried it from on Open event, no luck......
Any ideas are welcome..
Lightlancer
strange thing just happend,
I have 2 fields:
Me.Test
&
Me.Serienummer
both contains the same value! (12345)
When i run this code
Code:
If Me.Serienummer = "gstrNummerserie" Then
gstrFactuurnummer = Me.Factuurnummer
gstrAanschafdatum = Me.Aanschafdatum
gstrGarantietijd = Me.Garantietijd
DoCmd.Close
MsgBox "Factuurnummer: " & gstrFactuurnummer & " behoort bij dit apparaat met serienummer: " & gstrSerienummer & " is toegevoegt aan de garantie regeling", vbOKOnly, "Garantie aangepast!"
Else
DoCmd.Close
MsgBox "Er is geen Factuur voor dit apparaat gevonden met serienummmer : " & gstrSerienummer & "", vbOKOnly, "Geen Factuur!"
End If
It just runs the Else code,
its like there never the same.... but when i remove the docmd.close from the code, so the form stays open, de 2 fields are the same (12345) and still its running the Else
the code is running in the On load event, i also tried it from on Open event, no luck......
Any ideas are welcome..
Lightlancer