General information
Category:
Coding, syntax & commands
Hi:
Thanks for your help with my record pointer...just have a little
snag.
I have set up Property on Form A(where grid is) - Currec
I have set up Property on Form B - Crec
In my command button to edit a record on FormA my code is:
select gidetail
thisform.currec = recno()
do formB with thisform.currec
In the init of FormB I have:
Parameter crecno
thisform.crec = crecno
Tracing through the debugger everything is working, it's passing
the correct value.
However, if I try to run the following code in any method(activate,
init,click etc...anywhere, i get a syntax error.
select gidetail
go thisform.crec
thisform.refresh()
I stuck a command button on FormB and pasted this code it and it works perfectly. If I select a record in my grid, hit my edit button
on FormA and then hit the command button on formb, everything's perfect.
But I need this to display without having to use a command button.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only