Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copying fields from a table to another table.
Message
From
07/07/1999 17:06:34
 
 
To
07/07/1999 17:00:20
Brent Knight
Progressive Impressions International
Bloomington, Illinois, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00238536
Message ID:
00238537
Views:
12
>I could use a bit of help here.
>
>I want to copy fields from one table to another. I get a syntax error on the insert into line of my code. I don't think that it is recognizing the name of the table.
>
>Here is my code.
>
>close tables all
>use newmen in 0
>use counttbl in 0
>go top
>scan
> INSERT INTO counttbl (Num,priority,last,first,sex,act,act_length,act_date,; status,trans_num,trans_type,comments1,comments2,;
> add_date,prog_code,trans_stud,new_stud,ret_stud,;
> late_ret_stud,off_stud,temp_stud)
> VALUES (newmen.Num,newmen.priority,newmen.last,newmen.first,"m",newmen.act,newmen.act_length,newmen.act_date,newmen.status,;
> newmen.trans_num,newmen.trans_type,newmen.comments1,newmen.comments2,newmen.add_date,newmen.prog_code,;
> newmen.tran_stud,"y","n","n","n","n")
>endscan
>
>
>Help would be most appreciated. Thanks

You need one more ";" after ",temp_stud)".
Previous
Reply
Map
View

Click here to load this message in the networking platform