Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: WB786
  • Order by date
  1. WB786

    Disable command button if any textboxes are not null

    Have you tried: If Len(Nz(TextBox, "")) = 0 Then Me.CommandButton.Enable = True Else Me.CommandButtonEnable = False End If Place this in your Form.Current and Form.Load section. :-)WB
  2. WB786

    Form Field Expression

    Wouldn't it be better to just have a report built with the 3 fields instead? FirstName LastName CompanyName ------------------------------------------ John Doe Deere And then have the button just display the report when clicked. Also you will need to build the query to...
  3. WB786

    I need to put FirName initial with LastName

    POSTMANPHAT THANKS! Sometime when my brain goes dead I come here! You guys are awsome! :-)WB
  4. WB786

    I need to put FirName initial with LastName

    I can't figure out how to update a field with firstname initial and lastname in that field. I know how to use the Trim function and putting two fields togather but figure out how to take the first letter of the first name and the whole last name. Thanks! :-)WB
  5. WB786

    How to move focus from data sheet sub-form???

    No that didn't work either. I think it might be a "flaw" in Access 2003. If I manually click back to the first record then the focus comes off the new record. And it works fine. If I just simply tab through the new record without typing anything in any of the fields it is still making that...
  6. WB786

    How to move focus from data sheet sub-form???

    It is on the Main Form. It can't be on the sub-form. :-)WB
  7. WB786

    How to move focus from data sheet sub-form???

    Here is the code: Private Sub SendOrder_Click() Me.frmParts.Requery 'sub-form in datasheet view DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70 If IsNull([VendorName]) Then msg = msg & vbCrLf & vbTab & "- Vendor Name" If IsNull([VendorAdd1]) Then msg = msg & vbCrLf &...
  8. WB786

    How to move focus from data sheet sub-form???

    It is a very simple form with a sub-form in data sheet view. The user needs to fill out all of the 4 fields in this data sheet. After wards they will press the Send Order button which will validate to make sure all required fields have been entered. And now here is the problem: I am getting...
  9. WB786

    Send A Report Attachment Via SafeMail

    That is exactly what I end up doing. Thanks for the tip though. :-)WB
  10. WB786

    Send A Report Attachment Via SafeMail

    Here is what I need to do: 1 - Already have a button called Send Email. 2 - Need to be able to send a report as an attachment using SafeMail.myAttachments method. I know how to use DoCmd.SendObject property but how do I combine the two togather so the report gets attached to the email and is...
  11. WB786

    Database Search in my ASP search page.

    onpnt, I am the only IT guy here. I do everything here. LOL. Unlike the example in your video our website has no personal data. If someone wants to know the spec for a Bobcat then they can hack all they want. Anyways, I did everything you said. I also added form validation so the user has...
  12. WB786

    Database Search in my ASP search page.

    onpnt, Thanks for all the insight here. I love picking on MS because that is all I use here. It is a love-hate thing I have with them. Don't take it personal. Your idea is that if someone tries to submit a "blank value" then they can see your stuff. But wouldn't a form validation take care of...
  13. WB786

    Database Search in my ASP search page.

    onpnt, "Error Free Code" - I like that. Ask Microsoft if their code is Error Free - LOL. Sorry I don't believe anyone can be perfect. We can all strive towards perfection. Anyways, Ok little confused here. you are saying this about the following: Split(Request.Form("SearchValue")," ")...
  14. WB786

    Database Search in my ASP search page.

    onpnt, You have a valid point. But in my case: 1) It is hosted on 1and1.com. 2) the DB is an Access Database - no SQL involved here. 3)The above code gets the job done - the hackers can steal all the info on equipment rentals they want and there are no usernames or passwords in the...
  15. WB786

    Connecting to Access DB via ASP (DSN-Less)

    You will need to get the MS Package from 1and1 as you are not upgrading but really side grading. By default they give you the Linux package. I have several sites that are hosted on 1and1. Make sure your site is backed up before you make the move. :-)WB
  16. WB786

    Database Search in my ASP search page.

    Howard, THAT WORKED!!! AWSOME!!! THANKS AGAIN!!!!! PS: My company website that I setup a long time ago was missing this search feature. You can see the website here: http://www.capitalrentals.com/equipment.asp :-)WB
  17. WB786

    Database Search in my ASP search page.

    That worked! Now I have another problem. See Below. Sorry I am new to searchArray function. <% Set oRS = Server.CreateObject("ADODB.Recordset") Dim searchArray : searchArray = Split(Request.Form("SearchValue")," ") strSQL = "SELECT * FROM tblGroups WHERE [Active]=true...
  18. WB786

    Database Search in my ASP search page.

    The error I am getting is: Expected end of statement /search_result.asp, line 66 strSQL = strSQL "[GroupName] like '%" & searchArray(searchItem) & "%'" Thanks for the help! :-)WB
  19. WB786

    Connecting to Access DB via ASP (DSN-Less)

    This is what I use and it works: <%@ Language=VBScript %> <%Option explicit Dim oRs, oConn, connect, strSQL set oConn=server.CreateObject ("adodb.connection") connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" &_ Server.MapPath("db/mydb.mdb") & ";Persist Security Info=False"...
  20. WB786

    Database Search in my ASP search page.

    I have everything working BUT my problem is that if I am searching for a combo of words and it doesn't work. Here is the coding: Set oRS = Server.CreateObject("ADODB.Recordset") strSQL = "SELECT * FROM tblGroups WHERE [Active]=true and [GroupName] like '%" & Request.Form("SearchValue")...

Part and Inventory Search

Back
Top