Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Novice Needs Help
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00066788
Message ID:
00066833
Views:
27
>Hi folks.
>
>I'm completely new to the visual world. After spending 15 years coding in COBOL, RPG,... and then a few in Foxpro 2.5 (DOS) this is quite a different and exciting world. Here's my first Error:
>
>"The fields relating the parent and child tables are not the same data type. Do you want to add a new record to the parent table?"
>
>I get this when I create a form, use only ONE table, drag a couple of fields from my table to the from, create a grid on the same form using the same fields, place the wizstyle txtbuttons on the grid and try to add a record?
>
>Remember I'm green, don't assume any form of intellegence on my part.... Your help is greatly appreciated.

Jamie, when you used the form wizard to create a form it may have assumed your grid was a child table. Did you use a parent/child form to get the grid?

Most novices start with wizard-designed forms, then after writing a dozen questions to UT begin to develop their own code instead. The VFP wizards have many limitations and it is very difficult to change the code.

Meanwhile, go into the grid and check the LinkMaster, ChildOrder and RelationalExpr properties. If your grid is NOT a child table these should be blank. You may have added code through the grid builder not knowing exactly what the builder was asking.

Look at the TasTrade samples, you may find these examples easier to work with and use as models than the Wizard-designed forms.

HTH
Barbara
Barbara Paltiel, Paltiel Inc.
Previous
Reply
Map
View

Click here to load this message in the networking platform