254 messaggi dal 01 agosto 2003
Ciao a tutti
come faccio a mandara a capo questa stringa sql

dim objcmd as new oledbdataadapter ("Select * from reception_0 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" union Select * from reception_1 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" union Select * from reception_2 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" union Select * from reception_3 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" union Select * from reception_4 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" union Select * from reception_5 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" union Select * from reception_6 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" union Select * from reception_7 where tessera >="& datainizio2 &" and tessera <="& datafine2 &" order by tessera desc, datas desc ", objconn)

Modificato da victor8872 il 26 luglio 2020 08:56 -

victor
308 messaggi dal 08 gennaio 2011
Ciao, in Visual Studio 2019 qualsiasi cosa può essere scritta su più righe.

Dim objcmd As New OleDb.OleDbDataAdapter("Select * from reception_0 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " union Select * from reception_1 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " union Select * from reception_2 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " union Select * from reception_3 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " union Select * from reception_4 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " union Select * from reception_5 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " union Select * from reception_6 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " union Select * from reception_7 where tessera >=" &
                                                 datainizio2 & " and tessera <=" &
                                                 datafine2 & " order by tessera desc, datas desc ", objconn)

Torna al forum | Feed RSS

ASPItalia.com non è responsabile per il contenuto dei messaggi presenti su questo servizio, non avendo nessun controllo sui messaggi postati nei propri forum, che rappresentano l'espressione del pensiero degli autori.