Link to home
Start Free TrialLog in
Avatar of pauledwardian
pauledwardian

asked on

SQL Querry

How can I insert a single value into a single column by specifying the where clause?
Avatar of AielloJ
AielloJ
Flag of United States of America image

pauledwardian:

Is there only 1 column in the table?  Does the row already exist?

AielloJ
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pauledwardian
pauledwardian

ASKER

by the way, do you guys know how can I replace comma in access with -in a particualr column? Like an access querry?
In Access VBA, if we're talking a string value, then use replace:

Dim str As String
str = "123,456"

MsgBox Replace(str, ",", "-")

Open in new window


If something else, let us know.
Still need some more details from you (AielloJ's comment), whether you are creating new records (INSERT) or changing existing records (UPDATE).
Perhaps you can provide us with what you have and what you want to help clarify what it is you're trying to accomplish.
Topics: MS SQL Server, Databases Miscellaneous, SQL Server 2008
Since you are using an MS Access database you should request that the MS SQL Server and SQL Server 2008 topics be replaced with the more appropriate MS Access topic.
Thanks!