473,569 Members | 2,731 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

access 2002 insert into statement

hi

i'm trying to insert new and updated fields into my onlinereg2 table
from datatransfer table (imported weekly into access), though i am
running into problems. when i click run, i receive an input box
"enter parameter value" of onlinereg2.upda ted field.

i just wanted to update and/or append new fields when the
"DataTransfer.u pdated <> OnlineReg2.upda ted" are not equal to one
another because the only way of knowing if any one field has been
modified, the updated field is changed from the old updated date to
the date when modified.

so if anyone knows why my insert into statement is not working, any
advice would be appreciated.

thanks!!

INSERT INTO OnlineReg2 ( regDate, datePaid, updated, tuition,
paidAmount, tempID, iynausId, paymentType, channel, registrationtyp e,
[first], [last], email, [password], address, city, country, phone,
region, voluntering, props, years, payment, convention, health,
donation, contact )
SELECT DataTransfer.re gDate, DataTransfer.da tePaid,
DataTransfer.up dated, DataTransfer.tu ition, DataTransfer.pa idAmount,
DataTransfer.te mpID, DataTransfer.iy nausId, DataTransfer.pa ymentType,
DataTransfer.ch annel, DataTransfer.re gistrationtype,
DataTransfer.fi rst, DataTransfer.la st, DataTransfer.em ail,
DataTransfer.pa ssword, DataTransfer.ad dress, DataTransfer.ci ty,
DataTransfer.co untry, DataTransfer.ph one, DataTransfer.re gion,
DataTransfer.vo luntering, DataTransfer.pr ops, DataTransfer.ye ars,
DataTransfer.pa yment, DataTransfer.co nvention, DataTransfer.he alth,
DataTransfer.do nation, DataTransfer.co ntact
FROM DataTransfer
WHERE DataTransfer.up dated <> OnlineReg2.upda ted;
Nov 12 '05 #1
4 1992
We might be able to make a much better guess if we didn't first have to
guess at the composition of the Insert (more than likely, not a statement,
but an SQL view of a Query?) and from where, and how it was executed.
Clarify, remembering that the questions most likely to get a good answer are
"precise and concise".

Larry Linson
Microsoft Access MVP
"mcca68" <mc********@yah oo.com> wrote in message
news:39******** *************** ***@posting.goo gle.com...
hi

i'm trying to insert new and updated fields into my onlinereg2 table
from datatransfer table (imported weekly into access), though i am
running into problems. when i click run, i receive an input box
"enter parameter value" of onlinereg2.upda ted field.

i just wanted to update and/or append new fields when the
"DataTransfer.u pdated <> OnlineReg2.upda ted" are not equal to one
another because the only way of knowing if any one field has been
modified, the updated field is changed from the old updated date to
the date when modified.

so if anyone knows why my insert into statement is not working, any
advice would be appreciated.

thanks!!

INSERT INTO OnlineReg2 ( regDate, datePaid, updated, tuition,
paidAmount, tempID, iynausId, paymentType, channel, registrationtyp e,
[first], [last], email, [password], address, city, country, phone,
region, voluntering, props, years, payment, convention, health,
donation, contact )
SELECT DataTransfer.re gDate, DataTransfer.da tePaid,
DataTransfer.up dated, DataTransfer.tu ition, DataTransfer.pa idAmount,
DataTransfer.te mpID, DataTransfer.iy nausId, DataTransfer.pa ymentType,
DataTransfer.ch annel, DataTransfer.re gistrationtype,
DataTransfer.fi rst, DataTransfer.la st, DataTransfer.em ail,
DataTransfer.pa ssword, DataTransfer.ad dress, DataTransfer.ci ty,
DataTransfer.co untry, DataTransfer.ph one, DataTransfer.re gion,
DataTransfer.vo luntering, DataTransfer.pr ops, DataTransfer.ye ars,
DataTransfer.pa yment, DataTransfer.co nvention, DataTransfer.he alth,
DataTransfer.do nation, DataTransfer.co ntact
FROM DataTransfer
WHERE DataTransfer.up dated <> OnlineReg2.upda ted;

Nov 12 '05 #2
You need to include OnlineReg2 in the FROM clause of your query.

mc********@yaho o.com (mcca68) wrote in message news:<39******* *************** ****@posting.go ogle.com>...
hi

i'm trying to insert new and updated fields into my onlinereg2 table
from datatransfer table (imported weekly into access), though i am
running into problems. when i click run, i receive an input box
"enter parameter value" of onlinereg2.upda ted field.

i just wanted to update and/or append new fields when the
"DataTransfer.u pdated <> OnlineReg2.upda ted" are not equal to one
another because the only way of knowing if any one field has been
modified, the updated field is changed from the old updated date to
the date when modified.

so if anyone knows why my insert into statement is not working, any
advice would be appreciated.

thanks!!

INSERT INTO OnlineReg2 ( regDate, datePaid, updated, tuition,
paidAmount, tempID, iynausId, paymentType, channel, registrationtyp e,
[first], [last], email, [password], address, city, country, phone,
region, voluntering, props, years, payment, convention, health,
donation, contact )
SELECT DataTransfer.re gDate, DataTransfer.da tePaid,
DataTransfer.up dated, DataTransfer.tu ition, DataTransfer.pa idAmount,
DataTransfer.te mpID, DataTransfer.iy nausId, DataTransfer.pa ymentType,
DataTransfer.ch annel, DataTransfer.re gistrationtype,
DataTransfer.fi rst, DataTransfer.la st, DataTransfer.em ail,
DataTransfer.pa ssword, DataTransfer.ad dress, DataTransfer.ci ty,
DataTransfer.co untry, DataTransfer.ph one, DataTransfer.re gion,
DataTransfer.vo luntering, DataTransfer.pr ops, DataTransfer.ye ars,
DataTransfer.pa yment, DataTransfer.co nvention, DataTransfer.he alth,
DataTransfer.do nation, DataTransfer.co ntact
FROM DataTransfer
WHERE DataTransfer.up dated <> OnlineReg2.upda ted;

Nov 12 '05 #3
Sorry about being vague. It was executed from the query. Thanks :)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 12 '05 #4
Joe Mac <mc********@yah oo.com> wrote in news:400e7550$0 $70307$75868355
@news.frii.net:
Sorry about being vague. It was executed from the query. Thanks :)


That helps a lot.

--
Lyle
(for e-mail refer to http://ffdba.com/contacts.htm)
Nov 12 '05 #5

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

Similar topics

14
5393
by: Sean C. | last post by:
Helpful folks, Most of my previous experience with DB2 was on s390 mainframe systems and the optimizer on this platform always seemed very predictable and consistent. Since moving to a WinNT/UDB 7.2 environment, the choices the optimizer makes often seem flaky. But this last example really floored me. I was hoping someone could explain why...
14
4163
by: wolftor | last post by:
1) Is there a free runtime version of Access available that is more recent than the one for Access 2000? 2) If I create an application (MDE) in A2K, will it run on all later versions of Access? 3) If I create a CD using A2K Developer that includes the runtime version of Access 2K and an installation package, and if someone tries to...
6
4726
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
47
4485
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small company and this is a big decision for us(!) It's not just the money it's committing to an new version of Access!
2
838
by: azymuth | last post by:
using access 2002 for the first time; setup fields in design view...was able to insert column. entered data in datasheet view; sometimes its necessary to goback and insert a record. clicked on new record (*) however this adds record to bottom of datasheet. datasheet allows me to delete a row anywhere, how do i insert a row
8
3540
by: Richard Cleaveland | last post by:
I have been comfortable debugging VBA modules using Access 97. I recently acquired Office XP and converted my applications to Access 2000. In general they seem to run fine, but there's a bug in one (which may have been there before conversion). I now find that I can't get started debugging modules in 2002. If I call up a module from a...
52
9935
by: Neil | last post by:
We are running an Access 2000 MDB with a SQL 7 back end. Our network guy is upgrading to Windows Server 2003 and wants to upgrade Office and SQL Server at the same time. We're moving to SQL Server 2005, and, since he already has licenses for Office Pro 2002, he wants to upgrade to that. I've been saying that we need to upgrade to Access...
7
28740
by: Cindy H | last post by:
Hi I'm having a problem getting the insert statement correct for an Access table I'm using. The Access table uses an autonumber for the primary key. I have tried this: INSERT INTO Tournaments (Tournament, MemberName, Score) VALUES (vtournament, vMemberName, vScore) SELECT ID, Tournament, MemberName, Score FROM Tournament WHERE (ID =...
1
1257
by: amrit1123 | last post by:
I m Working on a MS Access 2002-2003 file format.and some problem is create during the creation of adp file .when i insert the form and report data from mdb file into adp file .can any one tell me how i insert a form and report data from mdb file(access 2002-2003 file format) into the another adp file.and can anyone tell me which bydefault adp is...
0
8122
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7673
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7970
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5219
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3640
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1213
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
937
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.