Adding Searchable Database to website

A

Anthony

I have an access database and I was wondering how I can add a search box
using frontpage to my website and then if they enter an item number is the
searchbox it will search my database and then list the results. If you could
please help.
Thanks, Anthony
 
K

Kathleen Anderson

W

Wayne-I-M

The "very" basic code to run that would be something like (to find one record)

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SomeIDNumber] = " & Str(Me![YourFormFieldName])
Me.Bookmark = rs.Bookmark

To find a number of records you would need to fillter the base data (this
could be done from the form). Something like this

SELECT TableName.FieldName
FROM TableName
GROUP BY TableName.FieldName 'Not req if not needed'
HAVING (((TableName.FieldName)=[Forms]![FormName].[Form]![ControlName]))
ORDER BY TableName.FieldName; 'Not req if not needed'

You would need to work this into your website code but ther access bit is
quite simple
 
A

Anthony

I tried to follow the instructions, but do not understand. I do not want to
add data to anything. All I want is if someone types in an item number it
will search this file and display the results. Let me know if I'm missing
something. Thanks again for your help.

Wayne-I-M said:
The "very" basic code to run that would be something like (to find one record)

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SomeIDNumber] = " & Str(Me![YourFormFieldName])
Me.Bookmark = rs.Bookmark

To find a number of records you would need to fillter the base data (this
could be done from the form). Something like this

SELECT TableName.FieldName
FROM TableName
GROUP BY TableName.FieldName 'Not req if not needed'
HAVING (((TableName.FieldName)=[Forms]![FormName].[Form]![ControlName]))
ORDER BY TableName.FieldName; 'Not req if not needed'

You would need to work this into your website code but ther access bit is
quite simple






--
Wayne
Manchester, England.



Anthony said:
I have an access database and I was wondering how I can add a search box
using frontpage to my website and then if they enter an item number is the
searchbox it will search my database and then list the results. If you could
please help.
Thanks, Anthony
 
T

Thomas A. Rowe

Have you considered a pre-written shopping cart application, even if you don't plan to sell via the
internet?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================


Anthony said:
I tried to follow the instructions, but do not understand. I do not want to
add data to anything. All I want is if someone types in an item number it
will search this file and display the results. Let me know if I'm missing
something. Thanks again for your help.

Wayne-I-M said:
The "very" basic code to run that would be something like (to find one record)

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SomeIDNumber] = " & Str(Me![YourFormFieldName])
Me.Bookmark = rs.Bookmark

To find a number of records you would need to fillter the base data (this
could be done from the form). Something like this

SELECT TableName.FieldName
FROM TableName
GROUP BY TableName.FieldName 'Not req if not needed'
HAVING (((TableName.FieldName)=[Forms]![FormName].[Form]![ControlName]))
ORDER BY TableName.FieldName; 'Not req if not needed'

You would need to work this into your website code but ther access bit is
quite simple






--
Wayne
Manchester, England.



Anthony said:
I have an access database and I was wondering how I can add a search box
using frontpage to my website and then if they enter an item number is the
searchbox it will search my database and then list the results. If you could
please help.
Thanks, Anthony
 
A

Anthony

No, I have not. What would you suggest?

Thomas A. Rowe said:
Have you considered a pre-written shopping cart application, even if you don't plan to sell via the
internet?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================


Anthony said:
I tried to follow the instructions, but do not understand. I do not want to
add data to anything. All I want is if someone types in an item number it
will search this file and display the results. Let me know if I'm missing
something. Thanks again for your help.

Wayne-I-M said:
The "very" basic code to run that would be something like (to find one record)

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SomeIDNumber] = " & Str(Me![YourFormFieldName])
Me.Bookmark = rs.Bookmark

To find a number of records you would need to fillter the base data (this
could be done from the form). Something like this

SELECT TableName.FieldName
FROM TableName
GROUP BY TableName.FieldName 'Not req if not needed'
HAVING (((TableName.FieldName)=[Forms]![FormName].[Form]![ControlName]))
ORDER BY TableName.FieldName; 'Not req if not needed'

You would need to work this into your website code but ther access bit is
quite simple






--
Wayne
Manchester, England.



:

I have an access database and I was wondering how I can add a search box
using frontpage to my website and then if they enter an item number is the
searchbox it will search my database and then list the results. If you could
please help.
Thanks, Anthony
 
T

Thomas A. Rowe

You would need to do a search for using the following or similar terms:

ASP based shopping cart application

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================


Anthony said:
No, I have not. What would you suggest?

Thomas A. Rowe said:
Have you considered a pre-written shopping cart application, even if you don't plan to sell via
the
internet?

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
http://www.Ecom-Data.com
==============================================


Anthony said:
I tried to follow the instructions, but do not understand. I do not want to
add data to anything. All I want is if someone types in an item number it
will search this file and display the results. Let me know if I'm missing
something. Thanks again for your help.

:

The "very" basic code to run that would be something like (to find one record)

Dim rs As Object
Set rs = Me.Recordset.Clone
rs.FindFirst "[SomeIDNumber] = " & Str(Me![YourFormFieldName])
Me.Bookmark = rs.Bookmark

To find a number of records you would need to fillter the base data (this
could be done from the form). Something like this

SELECT TableName.FieldName
FROM TableName
GROUP BY TableName.FieldName 'Not req if not needed'
HAVING (((TableName.FieldName)=[Forms]![FormName].[Form]![ControlName]))
ORDER BY TableName.FieldName; 'Not req if not needed'

You would need to work this into your website code but ther access bit is
quite simple






--
Wayne
Manchester, England.



:

I have an access database and I was wondering how I can add a search box
using frontpage to my website and then if they enter an item number is the
searchbox it will search my database and then list the results. If you could
please help.
Thanks, Anthony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top