Hi -
I use a local view on a form. I requery('vpeoplemast') and data shows on the form in textboxes with controlsource set to vpeoplemast.field.
If there is more than one record in the view, I want a navbutton to become visible and I want to skip through the view just as a table.
Problem is, whe I execute code below for "Next" - it tells me the alias is not found. I dont close any thing before clicking this nav button- so I am not sure as to why I am getting this error. Please see below:
** "Next" Procedure in Navbutton
If !Used('VPEOPLEMAST')
lcCASEnum = Thisform.cASENUM
Requery('vpeoplemast')
thisform.Refresh()
Else [red]&& I found that the view was not in use at this point[/red]
Select VPEOPLEMAST
Endif
If !Eof()
Skip
else
Messagebox("No additional DEBTORS for this Account",64)
Skip -1
Thisform.Refresh()
Endif
any suggestions?
Thanks
Angie
I use a local view on a form. I requery('vpeoplemast') and data shows on the form in textboxes with controlsource set to vpeoplemast.field.
If there is more than one record in the view, I want a navbutton to become visible and I want to skip through the view just as a table.
Problem is, whe I execute code below for "Next" - it tells me the alias is not found. I dont close any thing before clicking this nav button- so I am not sure as to why I am getting this error. Please see below:
** "Next" Procedure in Navbutton
If !Used('VPEOPLEMAST')
lcCASEnum = Thisform.cASENUM
Requery('vpeoplemast')
thisform.Refresh()
Else [red]&& I found that the view was not in use at this point[/red]
Select VPEOPLEMAST
Endif
If !Eof()
Skip
else
Messagebox("No additional DEBTORS for this Account",64)
Skip -1
Thisform.Refresh()
Endif
any suggestions?
Thanks
Angie