Current location: Hot Scripts Forums » Programming Languages » ASP.NET » [HELP!!]make auto calculate column when inserting value to database


[HELP!!]make auto calculate column when inserting value to database

Reply
  #1 (permalink)  
Old 12-03-08, 10:05 AM
jeanny88 jeanny88 is offline
New Member
 
Join Date: Jul 2008
Location: UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
[HELP!!]make auto calculate column when inserting value to database

Hey guys, I really need ur help to solve my problem.. I really dun have idea how to do it. First of all, I m working using VS 2008 VB and SQL Server 2005

I m creating a web base application which record the PO plus the serial number(this is the main point). I have been created 4 table for my project. Those are customer table, branch table, product table and order table. Product are based on customer and branch.. Some of product might order by more than one branches with different serial number on the item.

In the order page I have 3 cascade drop down list which are customer, branch and product..from those 3 only related customer and product order's detail are showing out. Now I want make the column of start serial number are automated which is last serial number plus 1. So in where I could write the script?? In sql server or in vb itself, and how to write it? First I need to match all those 3 selected value in drop down list then just can calculate the starting serial number for the new entry. I m using List View for insert and viewing the data..

Any suggestion will be appreciated… hope someone will guide me to solve the problem. Thx..
Reply With Quote
  #2 (permalink)  
Old 12-04-08, 04:37 AM
Yeroon's Avatar
Yeroon Yeroon is offline
Code Master
 
Join Date: Aug 2007
Location: Netherlands, Nijmegen
Posts: 850
Thanks: 2
Thanked 20 Times in 20 Posts
Please post any code that you might already have. I think I know what you mean, but can be more sure of that if you post some code. Please post the code that fills the 3 lists and post a sample of how the serial number would have to look.

If you dont mind, please also post any queries you have.
__________________
Feel free to thank people if they help you by clicking thanks at a post.
=================================
Make it idiot proof and someone will make a better idiot.
=================================
Realise the impotence of proof reading everything you publish
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Getting Date and Inserting Into Database CoreyW Database 22 01-02-08 05:32 PM
Firefox and align problems gigafare CSS 12 01-07-07 11:22 AM
I most definately suggest DevelopingCentral.com For Any Website Design/Development! Salty777 General Advertisements 2 10-01-04 04:27 AM
Using forms with auto increase column perleo PHP 3 10-11-03 04:37 PM


All times are GMT -5. The time now is 02:40 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.