Ok side tracked by the army to start something else before i finished with the last project.
This database should be uber simple. Its got some more variables to go into it yet of course but right now im just trying to get it to print and address line that it pulls from a table in code.
so far it pulls and displays the signature line fine but the address line do not show up in the report. As far as I can tell the code looks right. and there is only one battalions info in the adress table and that is FIRST BDE (QM) anything else and it will throw an error. I have the following code in after update for selecting the battalion. :
Private Sub BATTALION_AfterUpdate()
If Not IsNull(Me![BATTALION]) Then
Dim ADDRESSPICK1 As String
Dim ADDRESSPICK2 As String
Dim SIGNATUREPICK As String
ADRESSPICK1 = DLookup("[ADDRESS 1]", "[UNIT ID TABLE]", "[UNIT NAME]='" & Me![BATTALION] & "'")
ADRESSPICK2 = DLookup("[ADDRESS 2]", "[UNIT ID TABLE]", "[UNIT NAME]='" & Me![BATTALION] & "'")
SIGNATUREPICK = DLookup("[SIGNATURE BLOCK]", "[UNIT ID TABLE]", "[UNIT NAME]='" & Me![BATTALION] & "'")
'ASSIGN VARIABLE TO ACCESS VARIABLES
Me![ADDRESS LINE 1] = ADDRESSPICK1
Me![ADDRESS LINE 2] = ADDRESSPICK2
Me![SIGNATURE] = SIGNATUREPICK
'PRAY
End If