#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 93
Default UPDATE Query

Hi All,

I have userform in excel to search & get data from Access database.

I need to update some values from excel to access.

Right now i am using this code

txt1 = trim(userform1.textbox1.value)
txt2 = Trim(userform1.textbox2.value) ( This is Auto generated number
in Access table )

sSQL = "UPDATE table1 SET table1.[account number] = " & txt1
sSQL = sSQL & " WHERE ID= " & txt2

Similarly I have lot of Textbox and combo box

I don't want to create
if textbox1.value < "" then perform this operation
elseif do something
elseif do more....
end if

Please help in providing single sql statement which solve all the
queries.

Thanks in advance.
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
update DB via MS Query from WS Gaylen Excel Discussion (Misc queries) 4 April 3rd 09 03:38 PM
Auto Update Query jd77xx Excel Discussion (Misc queries) 1 February 13th 09 07:09 PM
Update Query Roger Bell New Users to Excel 1 October 11th 07 11:34 AM
Update Web Query rook Excel Discussion (Misc queries) 3 September 18th 07 05:06 PM
Automatic update through Web query mrbalaje Excel Discussion (Misc queries) 1 August 31st 07 08:09 PM


All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"