Pagina 1 di 3 1 2 3 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 22
  1. #1

    Problema con salvataggio campi formato memo...

    With RSEventi
    .addnew
    .fields("titolo") = cstr(request.Form("titolo"))
    .fields("descrizione") = cstr(request.Form("descrizione"))
    .fields("data") = cdate(request.Form("data"))
    .fields("sms") = cstr(request.Form("sms"))
    .update
    .close
    end with

    dove i campi descrizione e sms sono di tipo memo, mentre titolo è testo e data è di tipo data. Qualcuno mi saprebbe indicare una ragione per cui salva tutti i campi tranne quelli formato memo? sto impazzendo VVoVe:
    ...I took a heavenly ride through our silence I knew the moment had arrived
    For killing the past and coming back to life...

    ThePinkBox

  2. #2
    prova con

    .fields("descrizione") = cstr(request.Form("descrizione")) & ""

  3. #3
    niente da fare. Il brutto è che facendo un response.write del conenuto dei campi del form stampa tutto perfettamente...
    è come se in fase di scrittura avesse problemi a scrivere i campi memo. Non potrebbe essere qualche impostazione della connessione al db? io uso...

    RSEventi.ActiveConnection = stringa
    RSEventi.Source = fncstr
    RSEventi.CursorType = 3
    RSEventi.CursorLocation = 1
    RSEventi.LockType = 3
    ...I took a heavenly ride through our silence I knew the moment had arrived
    For killing the past and coming back to life...

    ThePinkBox

  4. #4
    prova allora a fare una INSERT INTO tradizionale

  5. #5
    correggimi se sbaglio: la sintassi dovrebbe essere questa?

    "INSERT INTO Eventi (descrizione, titolo, data, sms) VALUES ('" & cstr(request.Form("descrizione")) & "', '" & cstr(request.Form("titolo")) & "', " & cdate(request.Form("data")) & ", '" & cstr(request.Form("sms")) & "')"
    ...I took a heavenly ride through our silence I knew the moment had arrived
    For killing the past and coming back to life...

    ThePinkBox

  6. #6
    se il db è access, le date vanno tra #

  7. #7
    niente da fare :S
    ...I took a heavenly ride through our silence I knew the moment had arrived
    For killing the past and coming back to life...

    ThePinkBox

  8. #8

  9. #9
    Già, il bello è che, naturalmente, se trasformo i campi in formato testo salva tutto a perfezione Solo che a me servono lunghi... Quale potrebbe essere il problema?
    ...I took a heavenly ride through our silence I knew the moment had arrived
    For killing the past and coming back to life...

    ThePinkBox

  10. #10
    che ne so. io non ne ho mai avuti coi memo. prova a togliere cstr

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2026 vBulletin Solutions, Inc. All rights reserved.