473,386 Members | 1,924 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,386 software developers and data experts.

Passing Information

It would be great if someone could help me solve this.
Here is my situation..

I have have 2 databases containing these the following two,
subsequently.

Database I
TABLE: Requests:
- *Tracking#
- Requestedby
- DateRecvd
- Approvedby
- DateComplted

Database II
TABLE: RequestInfomation:
- *RequestIDNumber
- SubmittersEmailAddress
- DateReceived
- Approver
- DateProcessed

The "Requests" Table of DATABASE I is the main table accessed via form.
However, when I use Database II, I would like the RequestIDNumber,
SubmittersEmailAddress, DateRecieved, Approver, and DateProcessed to be
populated from the Requests Table, and update accordingly.
Tracking# = RequestIDNumber
Requestedb = SubmittersEmailAddress
DateRecvd = DateReceived
Approvedby = Approver
DateComplted = DateProcessed

Can this be done?

Jan 18 '06 #1
1 1004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Use the Form's AfterUpdate event to run an INSERT command into the table
in DB II. E.g.:

Private Sub Form_AfterUpdate()

' The path to DB II
Const PATH = "C:\My Documents\DB_II.mdb"

Dim db As DAO.Database

Set db = CurrentDb

db.Execute "INSERT INTO RequestInfomation IN "" & PATH & "" (" & _
(RequestIDNumber,SubmitersEmailAddress,DateReceive d," & _
Approver,DateProcessed) " & _
VALUES (" & Me!Tracking# & ",'" & _
Me!Requestedby & "',#" & _
Me!DateRecvd & "#,'" & _
Me!Approvedby & "',#" & _
Me!DateComplted & "#)", dbFailOnError

End Sub

Add error handling.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQ868LYechKqOuFEgEQKpdQCgtFfFBOwI5bCrpTDjmzI3++ sjRL8An02j
OmpEDKFpMm42DkmbUo3s+hYC
=3Pzh
-----END PGP SIGNATURE-----
dr******@gmail.com wrote:
It would be great if someone could help me solve this.
Here is my situation..

I have have 2 databases containing these the following two,
subsequently.

Database I
TABLE: Requests:
- *Tracking#
- Requestedby
- DateRecvd
- Approvedby
- DateComplted

Database II
TABLE: RequestInfomation:
- *RequestIDNumber
- SubmittersEmailAddress
- DateReceived
- Approver
- DateProcessed

The "Requests" Table of DATABASE I is the main table accessed via form.
However, when I use Database II, I would like the RequestIDNumber,
SubmittersEmailAddress, DateRecieved, Approver, and DateProcessed to be
populated from the Requests Table, and update accordingly.
Tracking# = RequestIDNumber
Requestedb = SubmittersEmailAddress
DateRecvd = DateReceived
Approvedby = Approver
DateComplted = DateProcessed

Can this be done?

Jan 18 '06 #2

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

Similar topics

3
by: AndyDunning | last post by:
Hello, I'm interested in establishing the best way to pass information between a vb script and a .net application. We have a VbScript that runs on a users pc every time a phone call is routed...
3
by: Simon Harvey | last post by:
Hi, In my application I get lots of different sorts of information from databases. As such, a lot of information is stored in DataSets and DataTable objects. Up until now, I have been passing...
7
by: Ken Allen | last post by:
I have a .net client/server application using remoting, and I cannot get the custom exception class to pass from the server to the client. The custom exception is derived from ApplicationException...
9
by: Just Me | last post by:
PARAFORMAT2 is a structure that SendMessage will return stuff in. Is the "ref" correct or since only a pointer is being passed should it be by value? Suppose I was passing data rather then...
7
by: Tim | last post by:
When there is a need to pass some dynamic information between 2 managed assemblies, the "Dictionary object" in Generic form can be used as a method parameter to pass the information. The...
3
by: sd2004 | last post by:
I am still learning, could someone show/explain to me how to fix the error. I can see it is being wrong but do not know how to fix. could you also recommend a book that I can ref. to ?...
2
by: sonaliagr | last post by:
I am trying to update a msg array in function by passing the address but it is showing an error. and also, i want the value of msg array to be accessible to the full code that is inside the main...
9
by: Greger | last post by:
Hi, I am building an architecture that passes my custom objects to and from webservices. (Our internal architecture requires me to use webservices to any suggestion to use other remoting...
46
by: ahmed.maryam | last post by:
Hi all, I have 2 C# applications that I need to pass data between. Specifically XML information such as a document or node name. How can I do that? Thanks in advance! ~ Maryam
2
by: Vinay Sajip | last post by:
Some users of the logging package have raised an issue regarding the difficulty of passing additional contextual information when logging. For example, the developer of a networked application may...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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.