Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Addressing fields in table

Status
Not open for further replies.

NWTrust

Technical User
Apr 2, 2002
68
GB
Hi
I want to reset the contents of all instances of a field in a table. I have in mind (all necessary dims taken care of):

Set db=CurrentDB
Set rst=db.OpenRecordset("tblPrinters")
For i=1 to rst.RecordCount
[insert fixed text into required field]
Next i

How do I address the required field to insert this text?

Any help would be appreciated

NWTrust
 

dim strSql as string
strSql = "UPDATE tblName SET fieldName = 'someString'"
currentdb.execute strSql
 
Thanks, MajP. It did the trick.

NWTrust
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top