473,421 Members | 1,625 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,421 software developers and data experts.

Automate a search field into a web page hyperlink??

Hi,

Basically, I am trying to automate a field named TraceabilityNo into a web page from an access form. I've got the serial held in the variable strSearchString. How can I get this into the hyperlink so it uses it to find the correct record?

This is the line of code with the hyperlink:

Application.FollowHyperlink "http://viewitd.com/UnitTrace/ListUnitTrace.asp?&ListProduct=0&ListProductVar1=0 &ListProductVar2=0&ListProductVar3=0&DespatchNo=&T raceabilityNo =&SerialNo=&StartDateTime=&EndDateTime=&TitleStrin g=+++strSearchString&sProduct= "


I've been trying the likes of e.g TraceabilityNo = strSearchString but it's not happening. Is it a syntax thing or am I way off ??!

Any help would be great thanks !

M
Feb 12 '24 #1

✓ answered by cactusdata

Probably something like this:
Expand|Select|Wrap|Line Numbers
  1. strSearchString = "456"
  2.  
  3. Dim HyperLink As String
  4.  
  5. HyperLink = "http://viewitd.com/UnitTrace/ListUnitTrace.asp?&ListProduct=0&ListProductVar1=0 &ListProductVar2=0&ListProductVar3=0&DespatchNo=&TraceabilityNo=" & strSearchString & "&StartDateTime=&EndDateTime=&TitleStrin g=+++strSearchString&sProduct="
  6.  
  7. Application.FollowHyperlink HyperLink

1 19577
cactusdata
214 Expert 128KB
Probably something like this:
Expand|Select|Wrap|Line Numbers
  1. strSearchString = "456"
  2.  
  3. Dim HyperLink As String
  4.  
  5. HyperLink = "http://viewitd.com/UnitTrace/ListUnitTrace.asp?&ListProduct=0&ListProductVar1=0 &ListProductVar2=0&ListProductVar3=0&DespatchNo=&TraceabilityNo=" & strSearchString & "&StartDateTime=&EndDateTime=&TitleStrin g=+++strSearchString&sProduct="
  6.  
  7. Application.FollowHyperlink HyperLink
Feb 16 '24 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Mario | last post by:
I am trying to set up a search field that searches my only my website. I dont want to link it to other search engines. It is only for the web im developing. Any Links or Suggestions on how to...
4
by: Captain Wonky | last post by:
As the subject says... I'm a database novice even though I've been trying to learn Access for years. I've 'almost finished' several databases but always get stumped on something - this time it's...
2
by: AA Arens | last post by:
When I push on my find-record button, after I focussed on the ID-number field on my form, the default search field in the Search-form dialog menu is not the focussed field, but another. Why? ...
3
by: Janelle.Dunlap | last post by:
I have an Excel spreadsheet containing a column of hyperlinks that I need to import into Access. I have no trouble importing (in my case actually linking) the spreadhsheet to the Access table,...
2
by: ZEROFIVE | last post by:
Just wanted to know how would i go about making a Search field and search results page if someone wanted to search on my site? Thanks alot, Jimmy
0
by: Scott | last post by:
I have a search form built with Access 97 and now I upgraded to Access 2003. On one field of the resulting form, I have a field of hyperlink data type containing the path of the file, i.e., Disk...
4
by: bendlam | last post by:
I have a page that contains search criteria and when you click on the search button it causes a post back that populates a dataview on the same page. One of the gridview columns contains a link...
1
by: brenty66 | last post by:
I have a userform that is used as an interface for information stored on excel spreadsheets. The user enters bits of information into fields on the userform which are place on the corresponding...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.