| |

VerySource

 Forgot password?
 Register
Search
View: 724|Reply: 2

VFP problem: I do not know where the problem is, I also hope that seniors can advise!

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-24 09:00:01
| Show all posts |Read mode
Good evening, everybody:
    Book table TSB, which has a "coding" field as the main index, and establishes a relationship with other tables. The purpose is to enter data in the text fields of the fields of the form, click the "Add" button, add records to the TSB table, create a new form Form1, and use the quick form to add the fields of the TSB table to the form In Form1, the following program is added to the Init event of Form1:
Go Bottom
bmz = Val (encoding) +1
Append
Insert Into TSB (Code) Values ​​(Str (bmz))
Why do I get an "index encoding is not unique" error when I submit a form?
----
Also please enlighten me, thank you!
Reply

Use magic Report

0

Threads

7

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-2-15 16:15:01
| Show all posts
Insert Into TSB (Code) Values ​​(alltrim (Str (bmz)))
Reply

Use magic Report

0

Threads

32

Posts

23.00

Credits

Newbie

Rank: 1

Credits
23.00

 China

Post time: 2020-2-18 12:45:02
| Show all posts
CALCULATE MAX (val (encoding)) TO lnMaxbm
insert into tsb (encoded) Values ​​(transform (lnMaxbm))
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list