polishrob wrote on Nov 27
th, 2007 at 2:29pm:
Could you point me in the right direction?
In this case, I think the right direction is the documentation for FormFieldValue.

I can't really tell from your code, but I'm guessing you are trying to fill the four elements you list as the arguments. The command does not take four random element names as arguments, therefore, it is not doing anything you expect. Try something like this:
var nn as Int
nn = @FormNewRecord("payhistory")
FormFieldValue("payhistory", "account no:", nn, accountno)
FormFieldValue("payhistory", "payment date:", nn, @ServerDate())
FormFieldValue("payhistory", "method:", nn, method)
FormFieldValue("payhistory", "check no:", nn, checkno)
FormCommit("payhistory")
FormCommit("")
Definitely take a look at the documentation so that you know where in the command to put the actual values and suchlike.