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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Appending Records to SQL views 1

Status
Not open for further replies.

Guntruck

Programmer
Mar 29, 2001
25
US

I have a fully working view with my SQL server. I display the results on a grid. I wish to add a new record to I have a button with just

APPEND BLANK

in it

i then type in values in the grid and when i try to tableupdate() the SQl server says that im trying to insert the value null into a column that cant be null, yet I have typed something into that column... am I just doing something fataly wrong here? I have a irking feeling its not looking to the grid for data its just trying to append a blank row to the server.. where am I tripping up?



Dave
 
Hmmm...it should be alright, since the INSERT statement isn't actually sent to the server until you move the record pointer or do an explicit TableUpdate; could it be that there are other columns in the table that are not in your remote view or are not in the grid?

You might need to do a trace (either ODBC or SQL Server) to see the actual statement being sent to the server. Robert Bradley
teaser.jpg

 
Look at the update fields in your view. Are they all checked? By default the view designer does not check the key field for update.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top