Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-08-2003, 04:36 AM
Senior Member
 
Join Date: Feb 2003
Posts: 212
Default Database questions

I have two simple(?) questions about databases.

1) Is there a way to add a new record to a database with SWF-kit

2) Is there a way to save records with empty fields.
I always get the following error:

Microsoft JET Database Engine:Waarden voor een of meer vereiste parameters ontbreken.. See also: .
update getallenkennis set OM1='222',OM2=444,OM3=444,OM4=444,OM5=undefined,OM 6=undefined,OM7=undefined,OM8=undefined,OM9=undefi ned,OM10=undefined where id=2




Reply With Quote
  #2 (permalink)  
Old 04-09-2003, 01:05 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Database questions

Hi,

you can add a new record to a database by two ways
1)Using the INSERT statement
insert into getallenkennis (id, OM1, OM2, OM3, OM4)
values (2, '222', 444, 444, 444)

2)Using the addnew method
Code:
rs.addnew();
rs.Fields["id"].value = 3;
rs.Fields["OM1"].value = "222";
rs.fields["OM2"].value = 444;
rs.fields["OM3"].value = 444;
rs.fields["OM4"].value = 444;

rs.update();
To save records with empty fields, please try

"update getallenkennis set OM1='222',OM2=444,OM3=444,OM4=444,OM5=,OM6=,OM7=,O M8=,OM9=,OM10= where id=2"

"undefined" is a FFish Script variable, I think it has not been treated as empty by the SQL driver
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:17 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.