473,662 Members | 2,622 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

URL and table fields

Hi,

I have 2 fields in a table named TRACKING and DATE.

How do I go about having a command button so that the 2 fields are put into
a url then launched in a web browser?

Basically it works like mail merge...for example
http://www.abc123.com/ID?<<TRACKING>> &DATE=<<DATE >>

Any help would be great...

Kind Regards
Blue Bell Trading

+++ WHEN REPLYING PLEASE DO NOT DELETE ANY OF THE TEXT AS WE NEED IT FOR
REFERENCE +++

Blue Bell Trading
Nov 13 '05 #1
3 1258
Nick J wrote:
Hi,

I have 2 fields in a table named TRACKING and DATE.

How do I go about having a command button so that the 2 fields are put into
a url then launched in a web browser?

Basically it works like mail merge...for example
http://www.abc123.com/ID?<<TRACKING>> &DATE=<<DATE >>

Any help would be great...

Kind Regards
Blue Bell Trading

+++ WHEN REPLYING PLEASE DO NOT DELETE ANY OF THE TEXT AS WE NEED IT FOR
REFERENCE +++

Blue Bell Trading


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Have you tried FollowHyperlink ?

' Get the tracking & date values. u could also use a query
' but this is simpler to show.
strTracking = DLookup("Tracki ng", "table_name ", "<criteria> ")
strDate = DLookup("[Date]", "table_name ", "<criteria> ")

' use Replace() function to put in values
dim strURL as string
strURL = "http://www.abc123.com/ID?|1&DATE=|2"
strURL = Replace(strURL, "|1", strTracking)
strURL = Replace(strURL, "|2", strDate)

' Open in internet browser
Application.Fol lowHyperlink strURL, , True

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQiUfCoechKq OuFEgEQIJlgCdEK iA809r6f/jU4Jg+DCBHYlAj5 oAn2r4
yAOTD5ihIUIiGrM bVdycIJoC
=82JU
-----END PGP SIGNATURE-----
Nov 13 '05 #2
You could try this.

In your form, you must have text boxes named TRACKING and DATE. Build an
event that is triggered by clicking the button and insert the following
code:

On Error GoTo ErrorHandler

Dim Website As String

Website = "http://www.abc123.com/ID?" & Me.TRACKING & "?DATE=" & Me.DATE

Application.Fol lowHyperlink Website, , True

ErrorHandler:
MsgBox "Error: " & Err.Number & " " & Err.Description
Exit Sub

Linda
"Nick J" <bl************ *@blueyonder.co .uk> wrote in message
news:bd******** **********@fe1. news.blueyonder .co.uk...
Hi,

I have 2 fields in a table named TRACKING and DATE.

How do I go about having a command button so that the 2 fields are put
into
a url then launched in a web browser?

Basically it works like mail merge...for example
http://www.abc123.com/ID?<<TRACKING>> &DATE=<<DATE >>

Any help would be great...

Kind Regards
Blue Bell Trading

+++ WHEN REPLYING PLEASE DO NOT DELETE ANY OF THE TEXT AS WE NEED IT FOR
REFERENCE +++

Blue Bell Trading

Nov 13 '05 #3
Thanks!

--
Kind Regards
Blue Bell Trading

+++ WHEN REPLYING PLEASE DO NOT DELETE ANY OF THE TEXT AS WE NEED IT FOR
REFERENCE +++

Blue Bell Trading
"Nick J" <bl************ *@blueyonder.co .uk> wrote in message
news:bd******** **********@fe1. news.blueyonder .co.uk...
Hi,

I have 2 fields in a table named TRACKING and DATE.

How do I go about having a command button so that the 2 fields are put into a url then launched in a web browser?

Basically it works like mail merge...for example
http://www.abc123.com/ID?<<TRACKING>> &DATE=<<DATE >>

Any help would be great...

Kind Regards
Blue Bell Trading

+++ WHEN REPLYING PLEASE DO NOT DELETE ANY OF THE TEXT AS WE NEED IT FOR
REFERENCE +++

Blue Bell Trading

Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
4469
by: deko | last post by:
How to run action query against linked table? I have an Access 2003 mdb with an Excel 2003 Workbook as a linked table. When I attempt to run an action query against the linked table I get this error: Deleting data in a linked table is not supported by this ISAM. From what I understand, indexed sequential access method (ISAM) drivers are used to update "non-Microsoft" file formats. So why doesn't Access
6
18837
by: Paul | last post by:
I was wondering if anyone has had an issue where using vba code to read an excel file and import the data into an access table some records are not imported from the excel file. It seems looking at the data in the excel file that if the first character in the excel file cell is numeric it will read and write only numeric values only. If I sort the coloumn in the excel file and the first character in the cell read is alphanumeric then only...
9
6787
by: PeteCresswell | last post by:
I've got something called "Reference Rates". The idea is that on a given day, we have various rates of return for various entities. e.g. Libor 3-month return, Libor 6-month return, US Treasury Bonds, the Prime rate, and so-forth. We associate a security with one of those rates. There are a set of rates for each calendar day, and the rates for that
4
3123
by: Bob | last post by:
Hi all, I'm trying to import data, modify the data then insert it into a new table. The code below works fine for it but it takes a really long time for 15,000 odd records. Is there a way I can speed up the processing substantially? as it currently takes about 10 minutes and thats just way too long because there is many of these imports that I need to do.... I currently insert each record one by one and I imagine thats where all the...
2
1826
by: sri20 | last post by:
Set tblNew_Cycle = db.CreateTableDef(New_Cycle_Name) 'Adding Fields to the Table tblNew_Cycle.Fields.Append tblNew_Cycle.CreateField("Test_Cycle", dbText) tblNew_Cycle.Fields.Append tblNew_Cycle.CreateField("Sno", dbInteger) tblNew_Cycle.Fields.Append tblNew_Cycle.CreateField("Group_Name", dbText) tblNew_Cycle.Fields.Append tblNew_Cycle.CreateField("Test_Case", dbText) tblNew_Cycle.Fields.Append tblNew_Cycle.CreateField("Result",...
0
8344
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8857
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8764
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8546
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7367
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4347
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1752
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.