ADD +1 to the filed PAX

User avatar
sal21
PlatinumLounger
Posts: 4343
Joined: 26 Apr 2010, 17:36

ADD +1 to the filed PAX

Post by sal21 »

sql="INSERT INTO PRENOTAZIONI ([IDTIP], [TIPO], [DAL], [AL], [MM], [AAAA], [NRGG], [AGG], [IDCLI], [PAX]) VALUES ('10','SINGOLA','15/06/2021','21/06/2021','6','2021','7','17/06/2021',0015, [PAX]+1)"

i need to add +1 to he existing value in PAX...

Have error!

note:
PAX have a numeric field property

User avatar
HansV
Administrator
Posts: 78391
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: ADD +1 to the filed PAX

Post by HansV »

This SQL insert a new record into the table. It does not update existing records, so I don't understand what you mean by "the existing value in PAX".
Best wishes,
Hans

User avatar
sal21
PlatinumLounger
Posts: 4343
Joined: 26 Apr 2010, 17:36

Re: ADD +1 to the filed PAX

Post by sal21 »

HansV wrote:
17 Jun 2021, 09:04
This SQL insert a new record into the table. It does not update existing records, so I don't understand what you mean by "the existing value in PAX".
sorry, wrong post.