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!

ADDING A VALUE TO A TABLE

Status
Not open for further replies.

FontanaS

Programmer
May 1, 2001
357
US
I WOULD LIKE TO ADD A VALUE TO A COLUMN IN A TABLE.


SO FAR I HAVE:

TABLE!TBL_ONE.CITY = "LAS VEGAS"

BUT I KEEP GETTING AN "OBJECT REQUIRED" ERROR.

THANKS
 
where are you trying to add it from , code ? a form ? a macro ?


 
hit enter to soon, if its a form and the form is bound to the data then it would be

me.[city] = "las Vegas"
 
THE FORM IS NOT BOUND TO THE DATA.

I JUST HAVE A BLANK FORM AND A TEXTBOX.

I DON'T WANT TO LINK IT TO THE TABLE BECAUSE I DON'T WANT THE USER TO BE ABLE TO VIEW ANY OF THE RECORDS THAT ARE ALREADY IN THE TABLE
 
you can bound the form and have it as data entry only look in help in Access 97 on hwo to do this

or ..


dim mydb as database
dim myrec as recordset

mydb = currentdb()
myrec = mydb.openrecordset(TBL_ONE)

with myrec
.addnew
![city] = me.txtcitybox.value
.update
end with

mydb = nothing
my rec = nothing

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top