{
if (flag==1)
{
if (theApp.m_pRecordset->GetEndOfFile())
{
AfxMessageBox("這是最後一張!");
return;
}
theApp.m_pRecordset->MoveNext();
}
else if (flag==0)
{
if(theApp.m_pRecordset->GetBOF())
{
AfxMessageBox("這是第一張!");
return;
}
theApp.m_pRecordset->MovePrevious();
}
}