Question : Updated values in database dowsn't show in form...

Hi guys.

I have an extremely annoying problem. I have a MS SQL 2005 database and a webinterface made in classic asp. I have a form where I create new records, and I also have a form where I can edit existing records. If I stuff all fields with values no matter if I make a new or edit an existing record, it updates fine to the database when I look directly into the database via Microsoft SQL Server Management Studio Express. BUT when I look up the record - new as well as edited one - all fields doesn't show as updated! And since I can look directly into the database, I know they're there.
So... can it be some wrong codes for the fields?? Maybe I can't see it because I'm getting nuts... so I'll give you some examples:

This one works:
<select name="privat_spec1_valg" style="width:150px;">
                <option value="null" <%If (Not isNull((Recordset1.Fields.Item("privat_spec1_valg").Value))) Then If ("null" = CStr((Recordset1.Fields.Item("privat_spec1_valg").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>></option>
                <%
While (NOT Recordset2.EOF)
%>
              <option value="<%=(Recordset2.Fields.Item("speciale").Value)%>" <%If (Not isNull((Recordset1.Fields.Item("privat_spec1_valg").Value))) Then If (CStr(Recordset2.Fields.Item("speciale").Value) = CStr((Recordset1.Fields.Item("privat_spec1_valg").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(Recordset2.Fields.Item("speciale").Value)%></option>
              <%
  Recordset2.MoveNext()
Wend
If (Recordset2.CursorType > 0) Then
  Recordset2.MoveFirst
Else
  Recordset2.Requery
End If
%>
            </select>

This one doesn't work:

<select name="roskilde_spec1_valg" style="width:150px;">
              <option value="null" <%If (Not isNull((Recordset1.Fields.Item("roskilde_spec1_valg").Value))) Then If ("null" = CStr((Recordset1.Fields.Item("roskilde_spec1_valg").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%>></option>
              <%
While (NOT Recordset2.EOF)
%>
              <option value="<%=(Recordset2.Fields.Item("speciale").Value)%>" <%If (Not isNull((Recordset1.Fields.Item("roskilde_spec1_valg").Value))) Then If (CStr(Recordset2.Fields.Item("speciale").Value) = CStr((Recordset1.Fields.Item("roskilde_spec1_valg").Value))) Then Response.Write("selected=""selected""") : Response.Write("")%> ><%=(Recordset2.Fields.Item("speciale").Value)%></option>
              <%
  Recordset2.MoveNext()
Wend
If (Recordset2.CursorType > 0) Then
  Recordset2.MoveFirst
Else
  Recordset2.Requery
End If
%>
            </select>

Here is another that works:

<input type="text" name="praktiserendelge_tekst" value="<%=(Recordset1.Fields.Item("praktiserendelæge_tekst").Value)%>" size="32" />

And this one doesn't work:

<input type="text" name="vagtlge_tekst" value="<%=(Recordset1.Fields.Item("vagtlæge_tekst").Value)%>" size="32" />

I have to insist on that the variablenames from the database-tables are correct. I checked them again and again... and as I said. The create/update procedure works fine.
Can you guys see an error above in the two examples than doesn't work??
If it looks correct (as I think it does), then please tell me if there's something in the database-settings that may mess up something?

Best regards

Ullenulle

Answer : Updated values in database dowsn't show in form...

I included a DROP TABLE command please do NOT include that.  So the SELECT statement should look like this:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
SELECT	[serienummer], [journalnummer], [chainlink], [kontaktdato], [initial], [telefonisk], [skriftligt],
		[personligt], [patient],[pårørende], [familierelation], [praklæge/speciallæge], [sygehus], [kommune_henvend],
		[anonym],[andre_henvend], [fornavn], [efternavn], [cprnummer], [adresse], [postnr], [By], [telefonprivat], 
		[telefonarbejde], [mobiltelefon], [email], [fornavn2], [efternavn2], [adresse2], [postnr2], [by2],[telefonprivat2],
		[telefonarbejde2], [mobiltelefon2], [email2], [praktiserendelæge], [praktiserendelæge_tekst], [vagtlæge], 
		[vagtlæge_tekst], [speciallæge], [speciallæge_tekst], [tandlæge], [tandlæge_valg], [andre behandlere],
		[andre behandlere_valg], [kommune], [kommune_valg], [transportudbyder], [transportudbyder_valg], [roskilde_valg],
		[roskilde_spec1_valg], [roskilde_spec2_valg], [køge_valg], [køge_spec1_valg], [køge_spec2_valg], [holbæk_valg],
		[holbæk_spec1_valg], [holbæk_spec2_valg], [kalundborg_valg], [kalundborg_spec1_valg], [kalundborg_spec2_valg],
		[fakse_valg], [fakse_spec1_valg], [fakse_spec2_valg], [næstved_valg], [næstved_spec1_valg], [næstved_spec2_valg],
		[slagelse_valg], [slagelse_spec1_valg], [slagelse_spec2_valg], [nykøbing_f_valg], [nykøbing_f_spec1_valg], 
		[nykøbing_f_spec2_valg], [nakskov_valg], [nakskov_spec1_valg], [nakskov_spec2_valg], [ringsted_valg], 
		[ringsted_spec1_valg], [ringsted_spec2_valg], [garantiklin_valg], [garantiklin_spec1_valg], [garantiklin_spec2_valg],
		[psyk], [psyk_valg], [psyk_spec1_valg], [psyk_spec2_valg], [andre_off_sgh], [andre_off_sgh_valg], [andre_off_sgh_spec1_valg],
		[andre_off_sgh_spec2_valg], [andre_off2_sgh], [andre_off2_sgh_valg], [andre_off2_sgh_spec1_valg], 
		[andre_off2_sgh_spec2_valg], [privat_sygehuse], [privatsygehuse_valg], [privat_spec1_valg], [privat_spec2_valg],
		[udenl_sgh], [udenl_sgh_valg], [udenl_spec1_valg], [udenl_spec2_valg], [andre_hvem], [andre_tekst], [frit_sgh_valg_ventetid],
		[us_pleje_reh], [adm_info_visi], [komm_adf], [kontaktpers], [livstrue_kraeft], [livstrue_hjerte], [klage_erstat],
		[pt_retsstill], [befordring], [sygesikring], [socialt], [service], [anden_info_vej], 
		[indhentet_info], [telefonisk_tilbagemelding], [sendt_materiale], [dialog], [møde_patient_pårør], [bisidder],
		[bistand_klage], [videresend_klage], [anmeld_hændelse], [andet_handling], [andet_handling/tekst], [henvist_til],
		[henvist_til_tekst], [behandling_udl], [true_syg_maks_vente],
		[andretekst], [anden_info_vej_tekst], [kommentar]
FROM    [ullenulle_patientvejledersa].[[tbl_registrer]
Random Solutions  
 
programming4us programming4us