Re: How to use extract a data table from from
- From: "JackP" <JackP@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 12 Jul 2005 02:47:03 -0700
Right - have just had a play with an access .adp and your code works.
If your database is an MDB file, I would recomment doing it the way I
suggested earlier.
If your database is an .adp file, the following is fine (apart from the
'where' bit I mentioned before) - and don't forget to close your recordset at
the end.
Dim dbObject As Connection
Dim rst As Recordset
Set dbObject = CurrentProject.Connection
Set rst = dbObject.Execute _
("SELECT [Rcv Date], [Item No] FROM TblReceiving WHERE Lot_ID= " &
me![Lot_ID])
With rst
Me![Rcv Date] = ![Rcv Date]
Me![Item No] = ![Item No]
End With
rst.Close
End Sub
.
- References:
- How to use extract a data table from from
- From: Alan48
- Re: How to use extract a data table from from
- From: Duane Hookom
- Re: How to use extract a data table from from
- From: Alan48
- Re: How to use extract a data table from from
- From: JackP
- Re: How to use extract a data table from from
- From: Alan48
- How to use extract a data table from from
- Prev by Date: Re: How to use extract a data table from from
- Next by Date: Re: Problem of executing the code in Access
- Previous by thread: Re: How to use extract a data table from from
- Next by thread: code for saving the query output to a table
- Index(es):
Relevant Pages
|