Solved Concanetate according to date (1 Viewer)

FahadTiger

Member
Local time
Today, 06:50
Joined
Jun 20, 2021
Messages
115
hi sir...
I have table like Table1 have this fields
i want concanetated descreption of cusName according to dates.. like this:
thanks my Experts
 

Attachments

  • 1672428213800.png
    1672428213800.png
    7.3 KB · Views: 39
  • 1672428334393.png
    1672428334393.png
    5.4 KB · Views: 47

FahadTiger

Member
Local time
Today, 06:50
Joined
Jun 20, 2021
Messages
115
thanks Sir for replying..im trying several time but I can not pass the date into the function ..so I can concatenate the field (descreption) have the same date as shown in my demo
thank you
 

Attachments

  • conc.accdb
    1.1 MB · Views: 38

Gasman

Enthusiastic Amateur
Local time
Today, 04:50
Joined
Sep 21, 2011
Messages
14,336
thanks Sir for replying..im trying several time but I can not pass the date into the function ..so I can concatenate the field (descreption) have the same date as shown in my demo
thank you
That is because you are not taking into account the dates, just the custname? :(
The code is only doing what you tell it to.?

Why not just use the DBGuy's function?
 

theDBguy

I’m here to help
Staff member
Local time
Yesterday, 20:50
Joined
Oct 29, 2018
Messages
21,485
But its still Empty
Interesting, it's definitely not empty on my end.
1672520867493.png

There may be some fundamentals we're missing. Can you please answer the following questions?
  1. Are you opening the query I created from the file I posted earlier?
  2. Did you "unblock" the file first before opening it?
  3. Did you "enable content" when you opened the file?
 

CarlettoFed

Member
Local time
Today, 05:50
Joined
Jun 10, 2020
Messages
119
In the attachment a variant to the previous solution.
 

Attachments

  • conc.zip
    34.8 KB · Views: 48

Gasman

Enthusiastic Amateur
Local time
Today, 04:50
Joined
Sep 21, 2011
Messages
14,336
Interesting, it's definitely not empty on my end.
View attachment 105502
There may be some fundamentals we're missing. Can you please answer the following questions?
  1. Are you opening the query I created from the file I posted earlier?
  2. Did you "unblock" the file first before opening it?
  3. Did you "enable content" when you opened the file?
@theDBguy
I downloaded your DB really just to say 'works here' :)

However I also get
1672566041997.png


I will investigate further.
Just mentioning as hoping it might highlight the issue?

Edit: Date format issue, OP is using UK format dates as do I.

@FahadTiger
Replace the simple csv with
Code:
description: SimpleCSV("SELECT descreption FROM Table1 WHERE custname='" & [custName] & "' AND desdate=#" &Format( [desDate],"mm/dd/yyyy") & "#")

but please understand the issue.

Amended, I get
1672566459435.png
 
Last edited:

Gasman

Enthusiastic Amateur
Local time
Today, 04:50
Joined
Sep 21, 2011
Messages
14,336
t

thank you Gasman ..its perfect now .. Although I use (yyyy/mm/dd) in my pc
thanks theDBguy for your function
thanks CarlettoFed ..but that not i want it




When using dates in Access they have to be in mm/dd/yyyy format or (I think) yyyy-mm-dd format. Certainly your format does not work?
I used this
Code:
Public Const strcJetDate = "\#mm\/dd\/yyyy\#"  'Needed for dates in queries as Access expects USA format.
in some of my DBs when I was using Access seriously.

Remember this anyway.
 

Users who are viewing this thread

Top Bottom