M
Muriukis
Funny thing happening I have these 2 fields in a sub form I want to update
one is getting its info from a table and the other from the main form.Am
using DLookup for the first field using the ProductId after update event
because its a unit price field the code am using is
Dim s as Currency
s=DLookup("[UnitPrice]","Products", "[ProductCode]=" & Me.ProductCode)
Me.UnitPrice=s
NB ProductCode is a text field . Now the funny thing is am getting an error
with the message "You cancelled the previous operation" but when I use the
same code with a ProductCode field which is a number its working where am I
going wrong?
The second field is a date which should lookup the date in the main form and
update itself
The code am using is
Me.Date = Me.Parent([Date])
its not working any help is appreciated
one is getting its info from a table and the other from the main form.Am
using DLookup for the first field using the ProductId after update event
because its a unit price field the code am using is
Dim s as Currency
s=DLookup("[UnitPrice]","Products", "[ProductCode]=" & Me.ProductCode)
Me.UnitPrice=s
NB ProductCode is a text field . Now the funny thing is am getting an error
with the message "You cancelled the previous operation" but when I use the
same code with a ProductCode field which is a number its working where am I
going wrong?
The second field is a date which should lookup the date in the main form and
update itself
The code am using is
Me.Date = Me.Parent([Date])
its not working any help is appreciated