473,385 Members | 1,942 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Lookup in a different database?

Hi,

Who can help me out with this problem:

Before I do an update query in database1, I want to know if a field in
another database already has been updated.

Does anyone knows the right way to write this down in vba?

thanks,
Danny

Nov 12 '05 #1
2 1377
On Wed, 28 Jan 2004 13:12:43 +0100, "Danny Pagnaer" <dp******@ford.com> wrote:
Hi,

Who can help me out with this problem:

Before I do an update query in database1, I want to know if a field in
another database already has been updated.

Does anyone knows the right way to write this down in vba?

thanks,
Danny


Well, the obvious way would be to first create an attachment to the table in
the other database, then jsut treat it as if it were local. If you need it to
me more dynamic than that, you can use the In "<database-name>" clause after
the From clause. Since there is only one In "<database-name>" clause for the
whole query, not one for each table, you have to do it in a subquery, sort of
like this...

Update tblFoo SET tblFoo.Foo=1 WHERE tblFoo.FooID NOT IN (
SELECT tblBar.FooID FROM tblBar IN "C:\Elsewhere\xyz.dbf")
Nov 12 '05 #2
Yet another in a rash of messages sent through an anonymous remailer.

On 28 Jan 2004 14:06:57 -0000, An****************@See.Comment.Header (Daniel
Tan) wrote:
Danny Pagnaer wrote:
Hi,

Who can help me out with this problem:

Before I do an update query in database1, I want to know if a field in
another database already has been updated.

Does anyone knows the right way to write this down in vba?

thanks,
Danny


You should look into taking some classes at your local community college.


Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: John Collyer | last post by:
Hi, In assembly language you can use a lookup table to call functions. 1. Lookup function address in table 2. Call the function Like: CALL FUNCTION
1
by: James E | last post by:
I have a question about best practices of how to deal with lookup data from my C# apps. On a couple of occasions I have come across a problem where I have to automate inserting a record into a...
9
by: Koen | last post by:
Hi all, My application uses a lot of lookup tables. I've splitted the frontend (forms, reports, etc) from the backend (data). The database has around 10 different users. The values in the...
2
by: John M | last post by:
Hi, In my database I am converting grades into scores (A=7, B=6, B/C = 6.5) I'm told this is quite slow, and sure enough, a report doing a fair bit of this is slow. I used to have the...
3
by: google | last post by:
I have a database with four table. In one of the tables, I use about five lookup fields to get populate their dropdown list. I have read that lookup fields are really bad and may cause problems...
4
by: jon f kaminsky | last post by:
Hi- I've seen this problem discussed a jillion times but I cannot seem to implement any advice that makes it work. I am porting a large project from VB6 to .NET. The issue is using the combo box...
7
by: | last post by:
I have what's probably a simple page lifecycle question related to dynamically evaluating values that are placed by a repeater and dynmically placing user controls that use those values. I'm...
11
by: Paul H | last post by:
Suppose I have a table called tblPeople and I want a field to illustrate whether each person prefers cats or dogs. I could do it one of three ways. 1. A plain text field Create a text field in...
6
by: =?Utf-8?B?TWlrZVM=?= | last post by:
I have searched Google with every possible combination of key words I can imagine and have not been able to find an answer to what I think is a very simple question and probably has a very simple...
3
by: Ken Fine | last post by:
This is a question that someone familiar with ASP.NET and ADO.NET DataSets and DataTables should be able to answer fairly easily. The basic question is how I can efficiently match data from one...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.