Click here to Skip to main content
15,885,077 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
1] i am doing one project using vb6.0 with ms-access 2003 database. i have
one table name [segment transaction] , its have more than 1000 records
i want update one or two column's bulk records in this table. single record update its ok no problem but multiple records update is complicated to me. please help me
i will expect your good solution.

For example:

Segment name segid quotation sorno status
------------- ----- --------- ----- ------
AAAA 1 2349879
BBBB 19 3564788
CCCC 34 3243424
............
.......
i want update more than 1000 records in [sorno and status ] columns based on "QUOTATION" from excel sheet.

2] my above mentioned project running network(multiuser environment), some
image file stored in server. i print this image through vb6.0 coding. but this image file is not save in my local machine, is it possible?
please help me


Thank you

sathik
srbatcha@yahoo.co.in
Posted
Updated 17-Jan-10 0:58am
v3

As far a bulk update of records is concerned just don't put any restrictions on the query i.e.
UPDATE [segment transaction] SET Col1=val1 AND Col2=val2

This would update the Col1 and Col2 columns for ALL records.
 
Share this answer
 
1)the update query
SQL
UPDATE [segment transaction] SET sorno=val1 AND status=val2 WHERE quotation = val3
Mr.Rod Kamp(Answer1) missed the where clause

2) Use common dialog control for image save operation. Then it will be fine if you mention the ERROR details about the image save operation, with out that i can only guess not solve.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900