having trouble with Lookup

R

Ron Berns

I am still pretty green at this coding. I am using Access2003.

I am trying to lookup a record in another table(stores) and save a field in the
current table (Table1). Here is what I have:

Set dbs = CurrentDb
Set rst = dbs.OpenRecordset("Table1")

..
..
..
StoreNo = Mid(MyString, 3, 4)
error --> rst!ST_GLN = DLookup("[GLN_NO]", "stores" , "[STORE_NO] = [StoreNo]")
rst.Update



Thanks in advance.
Ron
 
J

Jeff Boyce

Ron

Are you saying that you want to take a value stored in one table and copy it
into another table? If so, why? Doing whatever you're trying to do this
way would violate basic relational database design unless your situation is
fairly unusual.

If you'll describe your situation a bit more, folks here may be able to
offer more specific assistance.

Regards

Jeff Boyce
Microsoft Office/Access MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top