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 strongm 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: Kayo
  • Order by date
  1. Kayo

    I need my parameter query to prompt the user "No Records Found"

    I have a basic parameter query that asks the user to enter a social security number. Currently, if no record is found, the system shows a blank record. I need the system to prompt the user that "No Records Found" via msgbox.
  2. Kayo

    Select only matching characters in field1 to field2

    Leslie, thanks for getting back so quickly on this. I tried to respond to you immediately yesterday but the system was experiencing problems. In answer to your questions of yesterday: 1. The fields are in different tables. 2. The fields are both text fields. 3. UIC2 will always be a single...
  3. Kayo

    Select only matching characters in field1 to field2

    I have two fields: UIC1 = W12345 UIC2 = 12345 How do select all the records in UIC1 That match the five characters in UIC2? V/r
  4. Kayo

    Removal of Duplicates

    Ooch1, to easly get rid of "dups" simply create a new table. 1) Make a copy of current table's structure only 2) Do a make table query 3) In the new table design view, make the MPA ID field the "Primary field." This will prevent any duplicate MPA data from...
  5. Kayo

    Find part of field value

    [b]Sorry, it has taken me so long to get back w/you folks. Thanks for all the help. I tried all the examples. Klaz2002, your code produced exactly what I was looking for. Again, thanks to you all. V/r, Kayo{/b}
  6. Kayo

    Find part of field value

    Alpha/Numeric The UIC value identifies Army units in the field. Each Army unit has its own unique UIC e.g., W1234, W4889, W9876 all UICs begin with a "W" and are 5 characters long.
  7. Kayo

    Find part of field value

    1. I want the frequency of a field with broken values: Field = UIC(Unit Identification Code) Value = W1234 Lentth = 5 Rep = Alpha 2. I need to print all UICs that are not correct format or missing characters e.g., _1234, W12_4, W_ _34 etc. Thanks in advance.
  8. Kayo

    Why Arrays

    1. I hear so much about arrays. What are they and when should you use them? V/r,
  9. Kayo

    PARAMETER QUERY W/MULTIPLE INPUTS?

    1. Folks, I've answered my own question. Check the following code out. SELECT A2SF_UHGTU301ENL_INV.* FROM A2SF_UHGTU301ENL_INV WHERE (((A2SF_UHGTU301ENL_INV.PARTITION_ID)=54) AND ((A2SF_UHGTU301ENL_INV.EP_SSN)=[Enter SSN1])) OR (((A2SF_UHGTU301ENL_INV.PARTITION_ID)=54) AND...
  10. Kayo

    PARAMETER QUERY W/MULTIPLE INPUTS?

    1. I've built a basic parameter query that finds one social security number at a time. When found, the resulting data set displays: SSN, FNAME, LNAME, GRADE. 2. I need to be able to input multiple SSNs and if SSN is found then display the above or if SSN is not found display "record...
  11. Kayo

    Getting a parameter query to prompt "No Records Found"

    Paul, I forgot. your last post was a two star. We here at the pentagon (Army) really appreciate your help. As you know our computer help resources are extremely limited during these times and when we get into a programming fix, it's good to know you good folks are out there willing and able...
  12. Kayo

    Getting a parameter query to prompt "No Records Found"

    Paul, it worked. However, I still have a problem. After the msg box displays "no record found" and I click on the "ok" button, a blank form still appears. This is the same blank form that I wanted the msg box to get rid of. Any suggestions. Gregg
  13. Kayo

    Getting a parameter query to prompt "No Records Found"

    Paul, It all got to me and I took some time off. Below is the program. I have tried all the fixes you've advise me. Don't know where to go from here. Don't want to sound like a damp cloth, but is this thing I'm trying to do with Access 2000 doable? Public Function enlFound(strSSN As...
  14. Kayo

    Getting a parameter query to prompt "No Records Found"

    Paul, yes, the 1st line of code is highlighted in yellow: Public Function enlfound(strSSN As String) As String And the 3rd line of code is highlighted in blue: rs.Open "Select EP_SSN from ENLSSN where EP_SSN = '" & strSSN & '";", Pls call me Gregg
  15. Kayo

    Getting a parameter query to prompt "No Records Found"

    Tranman, did what you advised and was prompted the following error msg after I ran the program: Compile error: Sub or Function not defined The following code was highlighted in the debugger: Public Function enlFound(strSSN As String) As String Tranman, is there anything else that I...
  16. Kayo

    Getting a parameter query to prompt "No Records Found"

    Tranman, your post was reassuring. I cut and pasted as you advised; changed the criteria as instructed. Got the following error msg when I ran the program: Run Time Error '13': Type Mismatch When I ran the debugger the following code was highlighted: Set rs =...
  17. Kayo

    Getting a parameter query to prompt "No Records Found"

    Tranman, thanks for the input. Looks like I'm biting off more than I can chew. I'm not that good of a programmer to pull off what you just advised. Wouldn't know where to start. However, I really appreciate your time w/this thing. I'll take your code and play w/it, may just get lucky. Again...
  18. Kayo

    Getting a parameter query to prompt "No Records Found"

    I have the following parameter query. SELECT ENLSSN.EP_SSN, ENLSSN.COMPONENT_CD, ENLSSN.PAY_GRADE_ID, ENLSSN.RECSTA_CD, ENLSSN.SEX_CATEGORY_CD, ENLSSN.STRENGTH_CAT_CD, ENLSSN.UIC, ENLSSN.PMOS_CD FROM ENLSSN WHERE (((ENLSSN.EP_SSN)=[ENTER ENLISTED SSN])); Problem is, I need the query to prompt...
  19. Kayo

    New to VBA forum

    Hi folks, just picked-up "Access 2000 Programming by Example" for study. Have to learn the language - fast. Ya'll should be hearing from me soon for heeeeelp. I work for the Army(G1) here at the Pentagon and they keep me super busy w/this automation stuff. So here I am and can't...
  20. Kayo

    Help w/IIF

    1. Gol4 thanks for your input. It led me to the following: TRANSFORM Count([DB2_301].[EP_SSN]) AS CountOfEP_SSN SELECT Left([DB2_301].[PMOS_CD],2) AS PMOS FROM DB2_301 WHERE ((([DB2_301].[PARTITION_ID])=42) And (([DB2_301].[RECSTA_CD])="G") And (([DB2_301].[PAY_GRADE_ID]) In...

Part and Inventory Search

Back
Top