Re: Detail Form Scroll After Insert Record
- From: "Vensia" <vensia2000_nospam@xxxxxxxxx>
- Date: Thu, 5 Jan 2006 07:46:16 +0700
Gary,
Because the form contains details of item, so it should be viewed in
continuous form.
Actually, the form has enough height to display completely around 5 lines
of item.
Thanks.
"Gary Miller" <gmillerNO@xxxxxxxxxxxxxxxxxxx> wrote in message
news:#L3KcnOEGHA.2704@xxxxxxxxxxxxxxxxxxxxxxx
> Vensia,
>
> Is it possible that your subform is set to SingleForm
> instead of ContinuousForms? Check the DefaultView property
> of the subform in its design view.
>
> It sounds like either that is the problem or your subform
> container is not long enough to display multiple records.
>
> --
> Gary Miller
> Sisters, OR
>
>
>
> "Vensia" <vensia2000_nospam@xxxxxxxxx> wrote in message
> news:O23SToNEGHA.3728@xxxxxxxxxxxxxxxxxxxxxxx
> > Dear all,
> >
> > I put the following code at After_Update event of
> > frmInvoiceDetail
> >
> > Dim rs As DAO.Recordset
> > Dim strSQL As String
> > Dim curTotalAmount As Currency
> >
> > strSQL = "SELECT * FROM tblInvoiceMain WHERE InvoiceNo =
> > '" &
> > Me!InvoiceNo & "'"
> > curTotalAmount = Nz(DSum("Amount", "tblInvoiceDetail",
> > "InvoiceNo = '" &
> > Me!InvoiceNo & "'"), 0)
> > Set rs = CurrentDb.OpenRecordset(strSQL)
> > With rs
> > .Edit
> > !TotalAmount = curTotalAmount
> > !Tax = !TotalAmount * 0.1
> > .Update
> > End With
> > rs.Close
> > Set rs = Nothing
> >
> > Every time after I insert a new line of item, the Detail
> > Form
> > (frmInvoiceDetail) will scroll and at the screen, I just
> > can see the new
> > record. I should use the vertical scroll to see the
> > existing lines of item
> > Why this happens ?
> > Thanks.
> >
> > Vensia
> >
> >
>
>
.
- References:
- Detail Form Scroll After Insert Record
- From: Vensia
- Re: Detail Form Scroll After Insert Record
- From: Gary Miller
- Detail Form Scroll After Insert Record
- Prev by Date: Re: Northwind Employee Form and PDFs
- Next by Date: Re: Complicated Project Involving a Word App and A query
- Previous by thread: Re: Detail Form Scroll After Insert Record
- Next by thread: Re: How to use the requery in the form
- Index(es):
Relevant Pages
|