Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - SQL Add Method
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

SQL Add Method

 Post Reply Post Reply
Author
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Topic: SQL Add Method
    Posted: 28 April 2005 at 9:54am
Which method will i use to add new records to user's ID profile?

I have this problem of doing that by using SELECT and INSERT METHOD.

I have try using this method 'AddNew and Update Method'

Please help.
NgWebDesigns
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 28 April 2005 at 10:17am
You need to be a little bit more specific on what you want to do. Generally you insert a new record into SQL Server or Access (or pretty much any other db) with an insert statement. The User ID field is very often an identity field of type integer or guid so you would not need it in your insert list. If you for whatever reason must do it, you need to enabel Identity_Insert first and the method varies based on the db system you are using.
Back to Top
padoxky View Drop Down
Groupie
Groupie
Avatar

Joined: 17 June 2004
Location: Nigeria
Status: Offline
Points: 78
Post Options Post Options   Thanks (0) Thanks(0)   Quote padoxky Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2005 at 5:12am
Let me tell what i want. Am designing a bank website. As an Administrator i want to add new records to each client transcation information made by the client.
I don't know how to do it to work.

Am using using Access database for it.
Hope you understand now.
NgWebDesigns
Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post Posted: 29 April 2005 at 9:35am
Well just run a sql query like
Insert customerRecords (CustomerID, Rec1, Rec2,.....) Values (12345,'something','something else',....)
 
I cannot give you a more explicit answer without knowing your architecture. And on another note. Designing a bank website using Access is like throwing a bullet instead of shooting it. In other words, don't do it.
Back to Top
ub3rl337ch3ch View Drop Down
Senior Member
Senior Member
Avatar

Joined: 16 February 2005
Location: Australia
Status: Offline
Points: 341
Post Options Post Options   Thanks (0) Thanks(0)   Quote ub3rl337ch3ch Quote  Post ReplyReply Direct Link To This Post Posted: 01 May 2005 at 7:41pm
I think 'throwing a bullet at the guy with the gun' is more accurate.
Even if it is a first foray for the bank into online transactions and such, they really need to go at it the whole hog with security, stability etc, simply because of the global nature of the internet. Basically, even though it might be the first time for the bank, it's likely that any little !@#$ trying to break in and damage stuff is going to be fairly experienced.
 
Anyway, in Access if you're having issues with inserting stuff, then the frst thing you should check is that the key field of the table is an autonumber, so that it assigns a number automatically (as key fields cannot be null and it will throw an error).
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.