G'day Dan, At 07:20 18/04/02 -0400, you wrote: >Ok, > I have used the code that was posted (copied below to save looking > back) It still does not skip to that field. It is getting at least to > the recalc variables as the "succsessfully inserted data" does show on > the form. > The thing I wonder about is. The variable invbin1 is the SAME as the > field name. Mabye the trouble is that it thinks I am trying to skip to a > variable rather than the field. It is strange that the same skip to > command works earlier in the program. >Any other ideas?
If I recall correctly one of the rules regarding variables is to _never_ name a var the same as a column name. My personal coding practice is to call a var the same as a column with the v prefix. Eg. the var vHeaderID set to the value in col HeaderID, makes for ease of understanding for me. Others have suggested naming conventions with more useful purposes, like vRptHeaderID (so you know it was set in a report) or vFrmHeaderID (for a form) which also make clearing many variables with one CLEAR VAR vFrm% The other thing in the code below that I think Albert picked up on is that there are no parenthesis surrounding the col list in the INSERT statement. You have: >INSERT INTO matlist jobnum, mldate, qty, partnum, discript, + >price, product, margin, emp_mult + >VALUES (.invjobnum, .invmldate, .invqty, .invpartnum, .invdescript, + >.invprice, .invproduct, .invmargin, .invempmult) Whereas I would code: >INSERT INTO matlist (jobnum, mldate, qty, partnum, discript, + >price, product, margin, emp_mult) + >VALUES (.invjobnum, .invmldate, .invqty, .invpartnum, .invdescript, + >.invprice, .invproduct, .invmargin, .invempmult) Warmest regards, Tom Grimshaw coy: Just For You Software tel: 612 9552 3311 fax: 612 9566 2164 mobile: 0414 675 903 post: PO Box 470 Glebe NSW 2037 Australia street: 3/66 Wentworth Park Rd Glebe NSW 2037 email: [EMAIL PROTECTED] web: www.just4usoftware.com.au the most needed product in the world can be found at www.thewaytohappiness.org This email and any files transmitted with it are confidential to the intended recipient and may be privileged. If you have received this email inadvertently or you are not the intended recipient, you may not disseminate, distribute, copy or in any way rely on it. Further, you should notify the sender immediately and delete the email from your computer. Whilst we have taken precautions to alert us to the presence of computer viruses, we cannot guarantee that this email and any files transmitted with it are free from such viruses. ================================================ TO SEE MESSAGE POSTING GUIDELINES: Send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: INTRO rbase-l ================================================ TO UNSUBSCRIBE: send a plain text email to [EMAIL PROTECTED] In the message body, put just two words: UNSUBSCRIBE rbase-l ================================================ TO SEARCH ARCHIVES: http://www.mail-archive.com/rbase-l%40sonetmail.com/
