Re: Create a Temp Table via VBA



On Jul 31, 6:32 am, prakashwadhw...@xxxxxxxxx wrote:
I have an app with a Front End and a Back-End. My date field is
INV_DATE

I would like to copy all data with year(inv_date) > 2005 to a temp
table in both, the front end & the back end.

How can I do this via VBA ?

Rgds,
Prakash.

Are your FrontEnd and BackEnd linked to each other? Otherwise you have
to use a reference (filename and location) to one.

Dim dbsCurrent As Database, dbsContacts As Database
Set dbsCurrent = CurrentDb
Set dbsContacts = DBEngine.Workspaces(0).OpenDatabase("C:
\Contacts.mdb")

From here you may do as you please.

.



Relevant Pages

  • Re: Resetting Links to Delimited Text Files
    ... TableDef.SourceTableName and not in the Connect string. ... > Dim dbsCurrent As Database, ... > Set dbsCurrent = CurrentDb ...
    (microsoft.public.access.externaldata)
  • Re: recordset problem
    ... Doug Steele, Microsoft Access MVP ... Dim dbsCurrent As DAO.Database ... Dim rstRecords As DAO.Recordset ... Set dbsCurrent = CurrentDb ...
    (microsoft.public.access.formscoding)
  • Re: recordset problem
    ... Dim dbsCurrent As DAO.Database ... Dim rstRecords As DAO.Recordset ... Set dbsCurrent = CurrentDb() ...
    (microsoft.public.access.formscoding)
  • Re: recordset problem
    ... Doug Steele, Microsoft Access MVP ... Dim dbsCurrent As DAO.Database ... Dim rstRecords As DAO.Recordset ... Set dbsCurrent = CurrentDb ...
    (microsoft.public.access.formscoding)
  • Re: recordset problem
    ... Doug Steele, Microsoft Access MVP ... Dim dbsCurrent As DAO.Database ... Dim rstRecords As DAO.Recordset ... Set dbsCurrent = CurrentDb ...
    (microsoft.public.access.formscoding)