Solved

Add strings to Each record in Access

Posted on 2011-09-18
6
315 Views
Last Modified: 2012-05-12
As you can see that “Filter” query counts the repetition of each string.
What I want to do is to create another table with this query and do some access vba that changes the string in each record of the newly created table like this:

Filter
name      count
a                2
bb                2
ccc                 4
d                3

Now...........

A
bb
ccc

Becomes….

http://A.apsx
http://bb.apsx
http://ccc.apsx


So in essence, I am actually appending [http://] in the beginning and [.aspx] at the end of each record in a newly created table, along with the count column.
How that can be done in access vba? Please assist.

thank you
Rayne
0
Comment
Question by:Rayne
  • 3
  • 2
6 Comments
 

Author Comment

by:Rayne
ID: 36555668
I am attaching the sample access
Test.accdb
0
 
LVL 77

Accepted Solution

by:
peter57r earned 400 total points
ID: 36555712
You just use a make table query..

SELECT [Name], "http://" & [Name] & ".apsx" INTO Newtable  FROM filter;


are you sure it's apsx and not aspx
0
 
LVL 30

Assisted Solution

by:hnasr
hnasr earned 100 total points
ID: 36556662
Make table query!
check attached database query1.
Design modified!

SELECT qlFilter.aname, "http://" & [aname] & ".apsx" AS lnk INTO Table2
FROM qlFilter;

Test-2.accdb
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 

Author Comment

by:Rayne
ID: 36556863
Hello peter57r,

I remember you helped me a year ago in EE !! I rocked that summer internship because of EE and superfast experts like you :)
hehehe, yes thats aspx and not the other version that i mentioned  :]

hnasr, thanks for helping here too


Rayne
0
 

Author Closing Comment

by:Rayne
ID: 36556869
Awesome help always
0
 
LVL 30

Expert Comment

by:hnasr
ID: 36557209
Welcome!
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
'Between' is such a common word we rarely think about it but in SQL it has a very specific definition we should be aware of. While most database vendors will have their own unique phrases to describe it (see references at end) the concept in common …
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

912 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now