Re: mysterious lockup of form half-way through ADO code



Thank you, it works.


"Graham R Seach" <gseach@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:#YnpYMlYFHA.3152@xxxxxxxxxxxxxxxxxxxxxxx
> Whether you're using ADO or DAO is irrelevent, because the code in
question
> is VBA.
>
> You should really be using:
> !BeginTime = DateAdd("s", 4, Now())
>
> Regards,
> Graham R Seach
> Microsoft Access MVP
> Sydney, Australia
>
> Microsoft Access 2003 VBA Programmer's Reference
> http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
>
>
> "Sirocco" <NB2002@xxxxxxxxxx> wrote in message
> news:e39Uy5kYFHA.2860@xxxxxxxxxxxxxxxxxxxxxxx
> > The following expression works on my PC running Windows NT.
> >
> > !BeginTime = Now() + #12:00:04 AM#
> >
> > It puts the current time plus 4 seconds in the field called BeginTime.
> > (generally, the VB is the ADO version)
> >
> > On a different PC, running Windows XP, it also works (I know because the
> > field has the current time plus 4 seconds added to it) but then Access
> > completely locks up, the rest of the procedure doesn't execute, with no
> > error message, and I have to ctrl-alt-del to get out.
> >
> > What the heck is going on?
> >
> > I'd appreciate any response.
> >
> > Thanks.
> >
> >
>
>


.



Relevant Pages

  • Re: mysterious lockup of form half-way through ADO code
    ... Whether you're using ADO or DAO is irrelevent, ... Microsoft Access 2003 VBA Programmer's Reference ... > It puts the current time plus 4 seconds in the field called BeginTime. ...
    (microsoft.public.access.formscoding)
  • Re: VBA Error #429: ActiveX component cant create object
    ... I have a VBA procedure which sends an email. ... Late binding means you can safely remove the reference and only have ... an error when the app executes lines of code in question. ... Tony Toews, Microsoft Access MVP ...
    (microsoft.public.access.modulesdaovba)
  • Re: Inserting data from ADO record set.
    ... simple way) to inject ADO data into a Word document. ... through the collection of fields looking for DOCVARIABLE fields, ... and add "fields" without having to change my VBA code. ... > "Peter Jamieson" wrote in message ...
    (microsoft.public.word.mailmerge.fields)
  • Re: Is DAO still being used for MS Access 2003
    ... rewrite thier application in ADO. ... , and most of the Access books in print still don't get ... I get a lot of my information from these newsgroups. ... Tony Toews, Microsoft Access MVP ...
    (microsoft.public.access.gettingstarted)
  • Re: Is there a way to affect what is returned my MSQuery from w/in the Doc?
    ... I'm working with an application that is a DDE server and is capable to ... I may try to write my VBA w/in this one doc. ... the barcodes provide indexing info to the repository. ... I'll be back with VBA ADO woos soon enough. ...
    (microsoft.public.word.mailmerge.fields)