Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Run-time error '3075': in microsoft.public.access.modulesdaovba

Started 1 month, 2 weeks ago by Toni Miletic
Hi all, I'm using Access 2000 SR1 Could you please help me with this code. I'm trying to run SQL query from VBA: VBA code: strSQL = "SELECT tblUzorak.IDVrsta, Avg([tblUzorak]![PEN14647_6h]) AS 30A_PEN14647_6h, Avg([tblUzorak]![PEN14647_1d]) AS 30A_PEN14647_1d, Format(Avg([tblUzorak]![pastaENpoc]),""Long Time"",2,...
Site: Discussions in microsoft.public.access.modulesdaovba  Discussions in microsoft.public.access.modulesdaovba - site profile
Forum: microsoft.public.access.modulesdaovba  microsoft.public.access.modulesdaovba - forum profile
Total authors: 2 authors
Total thread posts: 4 posts
Thread activity: no new posts during last week
Domain info for: microsoft.com

Other posts in this thread:

Toni Miletic replied 1 month, 2 weeks ago
Hi all again me, If I change regional settings on the PC to English US then everything is working fine. I was using before Croatian regional settings. Any idea how to solve tis without changing regional settings? Kind regards Toni "Toni Miletic" wrote: > Hi all, > > I'm using Access ...

John Spencer replied 1 month, 2 weeks ago
Try changing the clause AND (tblUzorak.datum BETWEEN #" & startdate & "# AND #" & enddate & "# ) to force the date format into the unambiguous yyyy-mm-dd format AND (tblUzorak.datum BETWEEN " & Format(startdate,"\#yyyy-mm-dd\#")& " AND " & Format(enddate,"\#yyyy-mm-dd\#") & " ) Also why are you using LIKE and not ...

Toni Miletic replied 1 month, 2 weeks ago
Thanks John for your help it's working now with your code even I was in the meantime fixed it differently. Instead of this code: AND (tblUzorak.datum BETWEEN #" & startdate & "# AND #" & enddate & "# ) I used this one: AND ((tblUzorak.datum) BETWEEN #" & Format(CDate(strStartDateAsText), "mm\/dd\/yyyy") & "# AND #" ...

 

Top contributing authors

Name
Posts
Toni Miletic
3
user's latest post:
Run-time error '3075':...
Published (2009-11-10 23:01:00)
  Thanks John for your help it's working now with your code even I was in the meantime fixed it differently. Instead of this code: AND (tblUzorak.datum BETWEEN #" & startdate & "# AND #" & enddate & "# ) I used this one: AND ((tblUzorak.datum) BETWEEN #" & Format(CDate(strStartDateAsText), "mm\/dd\/yyyy") & "#...
John Spencer
1
user's latest post:
Run-time error '3075':...
Published (2009-11-10 18:57:00)
  Try changing the clause AND (tblUzorak.datum BETWEEN #" & startdate & "# AND #" & enddate & "# ) to force the date format into the unambiguous yyyy-mm-dd format AND (tblUzorak.datum BETWEEN " & Format(startdate,"\#yyyy-mm-dd\#")& " AND " & Format(enddate,"\#yyyy-mm-dd\#")...

Related threads on "Discussions in microsoft.public.access.modulesdaovba":

Related threads on other sites:

Thread profile page for "Run-time error '3075': in microsoft.public.access.modulesdaovba" on http://www.microsoft.com/communities/newsgroups.... This report page is a snippet summary view from a single thread "Run-time error '3075': in microsoft.public.access.modulesdaovba", located on the Message Board at http://www.microsoft.com/communities/newsgroups.... This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity