Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Update database from ODBC query (or another method)

I am able to to pull data into Excel via ODBC query.

My question is: can I edit it?

I am able to edit the data via Access and linking the table but I cannot see
a way of doing this in Excel.

Any suggestions?

Thanks

Richard


  #2   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 523
Default Update database from ODBC query (or another method)

Rather than using a SELECT SQL statement you need to use an UPDATE one - the
link here should help:

http://technet.microsoft.com/en-us/l.../ms177523.aspx

Don't be put off by how complex it looks - the examples at the bottom should
help. As a rough idea, if you have a table with two fields, you can update
field one based on the value of field 2 with a statement as follows:

UPDATE table1
SET field1 = 'New field 1 value' WHERE field2 = 'field 2 criterion'

Sam
"Richard Edwards" wrote:

I am able to to pull data into Excel via ODBC query.

My question is: can I edit it?

I am able to edit the data via Access and linking the table but I cannot see
a way of doing this in Excel.

Any suggestions?

Thanks

Richard



  #3   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Update database from ODBC query (or another method)

Ahhhh...

Can this be done within MS Query by updating the SQL?

"Sam Wilson" wrote in message
...
Rather than using a SELECT SQL statement you need to use an UPDATE one -
the
link here should help:

http://technet.microsoft.com/en-us/l.../ms177523.aspx

Don't be put off by how complex it looks - the examples at the bottom
should
help. As a rough idea, if you have a table with two fields, you can update
field one based on the value of field 2 with a statement as follows:

UPDATE table1
SET field1 = 'New field 1 value' WHERE field2 = 'field 2 criterion'

Sam
"Richard Edwards" wrote:

I am able to to pull data into Excel via ODBC query.

My question is: can I edit it?

I am able to edit the data via Access and linking the table but I cannot
see
a way of doing this in Excel.

Any suggestions?

Thanks

Richard





  #4   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 523
Default Update database from ODBC query (or another method)

Not that I know of - I don't think MSQuery is that clever.


"Richard Edwards" wrote:

Ahhhh...

Can this be done within MS Query by updating the SQL?

"Sam Wilson" wrote in message
...
Rather than using a SELECT SQL statement you need to use an UPDATE one -
the
link here should help:

http://technet.microsoft.com/en-us/l.../ms177523.aspx

Don't be put off by how complex it looks - the examples at the bottom
should
help. As a rough idea, if you have a table with two fields, you can update
field one based on the value of field 2 with a statement as follows:

UPDATE table1
SET field1 = 'New field 1 value' WHERE field2 = 'field 2 criterion'

Sam
"Richard Edwards" wrote:

I am able to to pull data into Excel via ODBC query.

My question is: can I edit it?

I am able to edit the data via Access and linking the table but I cannot
see
a way of doing this in Excel.

Any suggestions?

Thanks

Richard






  #5   Report Post  
Posted to microsoft.public.excel.programming,microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 12
Default Update database from ODBC query (or another method)

ok. Thanks very much.


"Sam Wilson" wrote in message
...
Not that I know of - I don't think MSQuery is that clever.


"Richard Edwards" wrote:

Ahhhh...

Can this be done within MS Query by updating the SQL?

"Sam Wilson" wrote in message
...
Rather than using a SELECT SQL statement you need to use an UPDATE
one -
the
link here should help:

http://technet.microsoft.com/en-us/l.../ms177523.aspx

Don't be put off by how complex it looks - the examples at the bottom
should
help. As a rough idea, if you have a table with two fields, you can
update
field one based on the value of field 2 with a statement as follows:

UPDATE table1
SET field1 = 'New field 1 value' WHERE field2 = 'field 2 criterion'

Sam
"Richard Edwards" wrote:

I am able to to pull data into Excel via ODBC query.

My question is: can I edit it?

I am able to edit the data via Access and linking the table but I
cannot
see
a way of doing this in Excel.

Any suggestions?

Thanks

Richard








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
odbc error on Excel query into database flowry Excel Discussion (Misc queries) 2 November 6th 08 09:26 PM
Update database from ODBC query (or another method) Richard Edwards Excel Worksheet Functions 4 June 24th 08 11:47 AM
Update database from ODBC query Richard Edwards Excel Discussion (Misc queries) 0 June 24th 08 09:22 AM
ODBC database query gneissgirl Excel Discussion (Misc queries) 0 November 10th 05 06:18 PM
Multiple ODBC Database lik in one MSQUERY query Alain79 Excel Discussion (Misc queries) 0 September 13th 05 12:25 PM


All times are GMT +1. The time now is 05:16 AM.

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

About Us

"It's about Microsoft Excel"