Locopete99
Registered User.
- Local time
- Today, 12:43
- Joined
- Jul 11, 2016
- Messages
- 163
Hi,
Could you please look at my code below.
In a nutshell, I'm looking to cross reference a secondary "Continaution" reference with the original "Blanket Agreement" reference.
To Do this, I have a Dlookup to lookup the "Continuation ref" in Tbl_Cont (That has 2 fields - Continaution ref and Original shikomi reference)
This will then place the "original shikomi reference" into the "Where" condition of the Open Shikomi register form.
Could you please look at my code below.
In a nutshell, I'm looking to cross reference a secondary "Continaution" reference with the original "Blanket Agreement" reference.
To Do this, I have a Dlookup to lookup the "Continuation ref" in Tbl_Cont (That has 2 fields - Continaution ref and Original shikomi reference)
This will then place the "original shikomi reference" into the "Where" condition of the Open Shikomi register form.
Code:
Dim BlanketAgreementNumber22 As Variant
Dim Continuation As String
Continuation = InputBox("Please Enter the Continuation Reference")
BlanketAgreementNumber22 = DLookup("[Shikomi Parent Number]", "Tbl_Cont", [Continuation Reference] = Continuation)
DoCmd.OpenForm "Frm_Shikomi_register", acNormal, "", "[BlanketAgreementNumber22]=" & "'" & [Blanket Agreement Number] & "'", , acNormal