mohammadagul
PrinceAtif
- Local time
- Today, 05:44
- Joined
- Mar 14, 2004
- Messages
- 298
hello friends
i have a small DlooupProblem here
tblLed
InvoiceDate - Date
Amount - Number
tblCal
D1
DAmount
D2
D2Amount
D3
D3Amount
....
D42
i have a form with a control source to tblCal
i am trying to use the DlookUp function as follows
Tried this on After update, On Current, On Exit, , but no use..
Dim X as Variant
X = DLookup("Amount" , "tblLed" , "InvoiceDAte = #" & forms!frmCal!D1 & "#")
Me.D1Amount = X
it does not give any error and does not give the value also
tried it in immediate window also and it shows a null value..
can anyone tell mewhat iam doing wrong here and why this code is not lookling ups the value.
i have a small DlooupProblem here
tblLed
InvoiceDate - Date
Amount - Number
tblCal
D1
DAmount
D2
D2Amount
D3
D3Amount
....
D42
i have a form with a control source to tblCal
i am trying to use the DlookUp function as follows
Tried this on After update, On Current, On Exit, , but no use..
Dim X as Variant
X = DLookup("Amount" , "tblLed" , "InvoiceDAte = #" & forms!frmCal!D1 & "#")
Me.D1Amount = X
it does not give any error and does not give the value also
tried it in immediate window also and it shows a null value..
can anyone tell mewhat iam doing wrong here and why this code is not lookling ups the value.