Data Access Page - Search Function

Jan 11, 2005

I’m having problems trying to construct a database for my company. They need the database to enter information about certain insurance policies that our company has. We have a table setup and ready to go. I need to allow multiple users to add records to the database so I want to setup a Data Access Page to accomplish this. However, there’s a problem I’m still stuck on.



In the Data Access Page, I need the ability to search and display a record designated by the primary key field (policy number). I found code to do this, however when I click the button, input a known policy number at the prompt, and click ok, it displays Error: 3265 the item cannot be found in the collection corresponding to the requested name or ordinal. Here’s the code from http://office.microsoft.com/en-us/assistance/HA010345491033.aspx


<!-- I took this out as i did not know what to do with it, it could be causing the problem
<SCRIPT LANGUAGE=vbscript FOR=MSODSC EVENT=Current(oEventInfo)>

-->

<SCRIPT language=vbscript event=onclick for=Command0>

<!--

' Clone the recordset.



Dim rs

Set rs = MSODSC.DataPages(0).Recordset.Clone

On error resume next



' This line assumes that the value you are filtering on is an integer.

' If the search value is a string, use slightly different syntax.

' For example, "CustomerID = '" & CStr(InputBox("Please enter customer to find", "Find")) & "'"

' rs.find "ProductID=" & cLng(inputbox("Enter a ProductID","Find"))

rs.find "CustomerID = '" & CStr(InputBox("Please enter customer to find", "Find")) & "'"

' Custom error handling.

If (err.number <> 0) Then

Msgbox "Error: " & err.number & " " & err.description,,"Invalid Search"

Exit Sub

End If

' Check search results for success.

If (rs.bof) or (rs.eof) Then

Msgbox "No Product found",,"Search Done"

Exit Sub

End If

MSODSC.DataPages(0).Recordset.Bookmark = rs.Bookmark

-->

View Replies


ADVERTISEMENT

Search In An Access Data Page

Sep 6, 2007

Hi i have a small problem that i hope you maybe able to answer.

I have creted an access data page, which works ok. However i really would like the option to search on a certain field to lookup a record. Is this possible?

I understand that there are filter options, but i need to define just one field, for one record.

The nature of this database is to store info on batches we produce, therefor it's important i can search via a batch number.

Is this possible?

View 1 Replies View Related

Data Access Page Filter Refresh The Page

Dec 30, 2007

Hi All,

I have a data access page needs a filter by a dropdownlist, the dropdownlist used is a html control and I use javascript to filter the data programmaticlly in the onchanged event of the control.

MSODSC.DataPages(0).Recordset.Filter="AppID = 3";

My problem is, when this statement runs, the page refreshes. But I don't need the page refreshes, it set the dropdownlist text to the default text, not the value user select. The browser is IE7.

How can I stop the page refresh itself?

Thanks and Happy New Year!!

View 1 Replies View Related

Search Button In A Data Page

Nov 21, 2005

I have the database and the Data page, but how do I add a search button to the data page to search the database by a certain field? Any help would be appreciated. I would be happy to send you the files if you give me a contact.

Thanks

View 2 Replies View Related

How To Run A Search Function In MS Access

Sep 6, 2006

Hi there,
I would like to run a query which will allow me to search a specific column in a table. Any help would be greatly appreciated!!
Thanks

View 5 Replies View Related

Search Function In Microsoft Access

Jan 12, 2006

Hi everyone,

Thanks for taking the time to read this.

I will firstly give you the low down on the business that I am doing the database for. It is a Car Restoration Business, where we deal with vintage/classic/muscle cars and restore them to the former glory.

I do not know Microsoft Access very well, I have attached a file with what I think is a databae I could be wrong. The main function of this database is to search for suppliers for a specific car part for a specific car.

So if I want to find a doorhandle for a 1970 Ford Mustang, I need the suppliers pertaining to those criterias to come up.

How do I get this to happen?

Thankyou for your help

Jess

:confused:

View 1 Replies View Related

Modules & VBA :: Search Code Deactivates Navigation Buttons When Search Results Are Longer Than A Page

Jun 24, 2015

I have a form that has a subform on it. The main form shows a category of furniture and has custom navigation buttons and a search text box for asset numbers and command button that runs the search. The subform shows the asset numbers associated with that furniture category, sometimes there is only one asset number, in other cases there could be 60. There is a scroll bar to scroll through the asset numbers when there are too many to see in the initial window.

The buttons all work as they should except when I search for an asset number that is part of a category that has too many asset numbers to show in the main window. When this happens the "previous" and "next" navigation buttons do not take you to the previous or next record. All of the other buttons on the form work though - you can go to the first, or the last record, and you can search for a new asset.This is the code for the search:

Code:

Private Sub cmdAssetSearch_Click()
Dim rs As Object
If IsNull(Me.TextAsset) Or Me.TextAsset = "" Then
MsgBox "Please type in an asset number to search for.", vbOKOnly
Me.TextAsset.SetFocus

[code]....

I've also attached a picture of what I mean when I say there are more asset numbers than what the window shows.

View 6 Replies View Related

General :: Search On Google And Return First Link From Search Page

Sep 21, 2012

I'm having Table with some universities name and i want web link address for all universities. Take university from table1 in column1 and search on google page and return first link of the search page and save into column2...

View 1 Replies View Related

Modules & VBA :: Possible To Call Windows Search Function Into Access?

Nov 3, 2014

I need a search function that will not just open files based on their names but also drill into the documents and search based on what's in it. The only way I can see now is to use the Window's search function (the one at the start button). Is it possible to call that function into access?how do I re-create the search style of the windows search bar for a specific folder? Something like streamreader

View 1 Replies View Related

Forms :: How To Open A Specific File Using Search Function In Access 2003

Dec 5, 2014

I have a access 2003 database, and i am wondering if i can't setup a search function in a form that will open a file in windows explorer?

What i would like to do is have a test box that i enter in a number for example: 1234 then have a button named "Search" hit that button and it opens a corresponding file in windows explorer named 1234, or just opens that folder directly..

View 14 Replies View Related

Data Access Page

Oct 2, 2005

Is it good to use (to make) Data Access Page to access the database (and put it on the web ) ?? :confused:

View 1 Replies View Related

OLE In Data Access Page

Oct 19, 2005

I have a photo (jpg format) which store OLE field in a table. But, I would like to display it in a Data Access Page. But, I have being prompt the following error: "You tried to drop an OLE or long binary column onto your data access page. There is no HTML control which binds correctly to this column type."

Do anyone know how to overcome this problem?

View 1 Replies View Related

Data Access Web PAge

Apr 12, 2006

Hi,

Can anyone tell me how I can get my data input web page to load with a new fresh input page. At present, each time a user opens the form, it displays the last record that was input previously.

When using a form, the record properties can be changed so that when the form is opened, it displays a new blank record to fill in. I cannot find any properties in the web page design view that allow it to be set to startup with a new blank page rather than the last record that was entered.

Any suggestion?

Thanks

View 1 Replies View Related

Data Access Page Help

Jul 31, 2006

Hi,

So i have made a Data Access page using the wizard from a table called Employees
I want the Access page to have some sort of search button so that they can quickly find an employee, rather than scrolling through all 100 records.

How can i do this?

Thanks Brian

View 2 Replies View Related

Data Access Page Help

Jan 15, 2007

Hey guys,

I'm somewhat new to MS Access. I'm trying to allow a user to update, add/delete records through a data access page. I am able to view the query, navigate through the results, but I am not able to make any changes. I get a pop up message saying the record set I am using is read-only. As far as I know, my table is fully editable. Anyone have input on this issue?

View 5 Replies View Related

Data Access Page

Sep 1, 2007

Hi All,

I have created a Data Access(DAP) Page to append the sales order received on phone. The Data Access Page is linked to query which has autonumber field to store the Sales Order. I have a textbox on DAP for Sales Order No. The autonumber generated in Table is different from autonumber generated on DAP. I want same the autonumber on page and in table.


Thanks for time.

S Acharya

View 3 Replies View Related

Data Access Page

Oct 3, 2007

Hello Everyone,

Can you allow the users to update and edit the data access page and actually change the data in the database? Or is it just a view only? If possible I need the user to be able to update the database through the data access page.

Is this possible?

Any ideas would be helpful.....

Thanks

View 1 Replies View Related

Data Access Page Help!!

Dec 21, 2007

I have a database for my staff to enter data into via a data access page. It works on all windows xp os computers. We do have staff working on Windows 2000 os computers and it is not working appropriately.

The database was created in Access 2003. When the user pulls up the page, none of the drop down menu's populate. I try to trouble shoot it and access states that it can't make a connection to the database. This is only on Windows 2000 os. Windows XP computers work fine.

Any suggestions?

Thanks in advance,

jason

View 1 Replies View Related

Access Data Page Help

Dec 29, 2004

I have built a BD with several date fields (on a form) that were set up with a simple command button for "today's date" to be entered.



I'm attempting to set up a Data Access Page that is very similar and easy to use. I need help setting up command buttons that auto-populate text boxes.....if this isn't the best route, I'm open for ideas.



I have just started putting the Access Data Pages together and don’t have a real good grasp yet.



Any help would be great…..

View 1 Replies View Related

Data Access Page On FTP

Oct 26, 2005

I have a database that I'm trying to create a data access page for. The database allows people to put in their information and register for a conference. This part works fine.
I tried using the data access page wizard to create the page. I can't seem to get the connection string to point to the database so that when I upload both to my FTP, they will work together.
I have successfully uploaded the access pages to the FTP, but it will only update the database if it remains on my computer.
How can I set the location to be relative to the data access page? (eg - DB1.mdb is on ftp in /_private, data access page in same directory on ftp and looks in its own directory).

Or, maybe the problem isn't this straight forward?
Thanks,
--Jim

View 1 Replies View Related

Access Data Page

May 5, 2006

I use data access pages for manipulating data from DB.
I wish to retrieve data from my Access2003 database using an SQL variable value which should be entered through some text box.
I would like to make DAP that would have one text field and action button, returning a result based upon my entry in that text field.So when button pressed
Can someone give me some sample ASP or VB code for doing this?

View 2 Replies View Related

Data Access Page

Mar 18, 2013

I have created a very simple Data access page and saved in in a folder on my computer, I can open it from MSACCESS. But when I try to opent it directly from where it is saved here is what happens:

- The explored message as the content is not allowed by secutity settings. then I allow the content.
-I got a message that Windows will close this program (Internet Explorer) to protect your computer.

View 1 Replies View Related

Data Access Page - Password

Jun 22, 2005

I'm currently using a data access page web form in order for users to enter data into my database. The database is protected with a generic password. Whenever the form is opened in IE, it asks for that password.

The functionality that I want is for the users accessing the database through the data access web form to not need a password, but I do want the password on the database itself. This way users can't just see all the information stored within the database, but they can submit certain information through forms. Is this possible? I can't really find much about data access pages even requiring passwords, but it makes sense. I just don't know how to achieve the desired functionality.

View 3 Replies View Related

Ask For Help About Hyperlink In Access Data Page, Thanks A Lot!

Aug 19, 2005

I created a hyperlink that links to a zip file. But when I use IE to browse the page, I cannot see "save target as" after right clicking the hyperlink. Why? Thank you very much for any help.

View 1 Replies View Related

Creating A Data Access Page

Aug 8, 2006

I am trying to make a DAP for data input into a table.

I used the wizard and it has the fields I want, I can scroll through them and view the entries, but they are not editable.

I read about changing the Page DataEntry property to True, but I still cannot select any of the editboxes on the DAP and now the DAP just shows blank non-selectable editboxes.

I decided to create a dummy table to work with to test creating a DAP, my dummy table looks like this:

Group Name Number Text
1 Bill 3 pink
1 Adam 5 green
2 Charlie 7 blue

I ran the wizard on the above table and again I can scroll through but not select any of the fields, and with DataEntry set to True I still cannot select/edit the textboxes.

Is there something else I need to do to be able to make an input form?


Once I get that sorted out I have a followup question: The dummy table above is where the input data goes, but on the input form I would like if possible to get the Group and Name from a different table using drop-lists. The real table has over 5000 names split into groups of about 30-50 so picking a group first would help find a name in the list which will eventually be input to the table above.

Hope that all makes sense, and thanks in advance for any help!

View 1 Replies View Related

Login For Data Access Page

Mar 19, 2007

Hello

Can anyone help?

Im in the process of making an access database with a login form. I used VB code to validate the login which was bound to a logon button after the user puts in a username and password.

This worked fine - but I now need to do the same for a data access page.

Can anyone tell me how to do this please?

Many Thanks
Daz

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved