Re: 'Method 'Value' of object '_AccessField' failed
From: Val Mazur (group51a_at_hotmail.com)
Date: 02/27/04
- Next message: Val Mazur: "Re: NEED TO SEEK THE FIELD (INVOICE # SEARCH)"
- Previous message: Val Mazur: "Re: RecordsetPtr & Command's Execute() method"
- In reply to: Daniel: "'Method 'Value' of object '_AccessField' failed"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 26 Feb 2004 22:56:23 -0500
Hi,
Try to use Fields collection
frm!UnitWeight = Nz(tbl.Fields("NewWgt").Value)
frm!Dimensions = Nz(tbl.Fields("NewDim").Value)
--
Val Mazur
Microsoft MVP
"Daniel" <anonymous@discussions.microsoft.com> wrote in message
news:2EB76C11-098C-49FC-84A0-F57E574B3349@microsoft.com...
> What's this error and how do I get rid of it ?
> This error occurs at random times and mostly under Access Runtime (XP
> Running on Win2K SP4)
>
> Here's the SUB:
>
> Sub RecalcStr(frm As Form)
> If frm.Dirty Then frm.Dirty = False
> Dim tbl As New ADODB.Recordset
> tbl.Open "Select * From dbo.ItemDimWgt(" & frm!ID & ")",
> CurrentProject.Connection, adOpenStatic, adLockReadOnly
> frm!UnitWeight = Nz(tbl!NewWgt) <------ Here
> frm!Dimensions = Nz(tbl!NewDim) <------- And Here
> tbl.Close
> End Sub
>
> The desperate :-(
>
>
- Next message: Val Mazur: "Re: NEED TO SEEK THE FIELD (INVOICE # SEARCH)"
- Previous message: Val Mazur: "Re: RecordsetPtr & Command's Execute() method"
- In reply to: Daniel: "'Method 'Value' of object '_AccessField' failed"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|