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 Chriss Miller 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: MA04
  • Content: Threads
  • Order by date
  1. MA04

    Populate recordsource of combobox with query result

    Hi all, I want to populate a combobox recordsource with a query result, by using recordsets. I have done this using a query but is too slow. Me.AddressCombobox.RowSourceType = "Table/Query" Me.AddressCombobox.RowSource = "SELECT DISTINCTROW [Query3].[field1] FROM [Query3];" The user enters a...
  2. MA04

    Code help for navigational buttons

    Hi guys, I have 2 forms say form1 and form2. Now in form1 the user enters a code in a textbox say EnterCodeTxt, now if that record is already present in a table say table1 then a command box is activated and the user can press it to view the existing record. The command box opens form2 and some...
  3. MA04

    IIf Statement problem

    Hi Guys, I Can't seem to get my IIF statement correct i am working with 4 fields Say field1, field2, field3, field4. What i want to do is display field1 and field2 together seperated by a comma if both are not null and field3 or field4 are not null, if field1 is not null and both field3 and...
  4. MA04

    Filter a combobox value list by textbox

    Hi all, I needed to filter a combobox value list by a user entry in a textbox, like the way when a user enters values in the combobox which filters through the value list by the user entry. Also noting that the user does not need to enter the full value like a wildcard entry. Thanks in advance...
  5. MA04

    Open a form in custom window

    Hi all, I have a command button on one form: form1 that opens another: form2. Form1 opens in a maximized window, now i want form2 to open in a restore window i.e. which is the size of form2, but leave form1 in maximized window. Also is it possible for form2 to open up on the bottom right hand...
  6. MA04

    Problem using Dlookup

    Hi guys, I have one main form: ma_search2 which is unbound. Which has an unbound textbox: EnterPostcode, which is for user entry. When the user enters a post code (string), i want it to filter a table called: ma_dbo_uk, with field: POSTCODE. Now i have a command button which opens up a 2nd...
  7. MA04

    Select Query too slow

    Hi all, My select query is too slow i need a way to speed up the process. Please bare with me while reading through. The query uses table: dbo_uk_homes with fields: POSTCODE(text) PRMF(memo) STRD(text) STR(text) LOCDD(text) LOCD(text) PTN(text) CNT(text) WCD(text) Now the query has a...
  8. MA04

    Updating a record using VBA on form

    Hi all, Not sure how to do this but what i want to do is update a record, which would add a value to a field from a textbox to an existing record. I have a command button on the form which when pressed should carry this out. The table i want to update to is called: Address. The field i want...
  9. MA04

    Code help needed

    Hi all, I have a code which checks in a textbox called: Name_input if it is null if so it exits procedure if entry has been made runs it. The procedure puts the entry into proper case. I want the procdure to have an added condition to the isnull one, i want it to check if entry is already in...
  10. MA04

    Difference between Option Compare Database and Option Compare Binary

    Hi all, I have a search and append form, for one or 2 textboxes i am calling a module which puts a value entered in them, into proper case. The code in the textbox on exit calls the module but only prompts the user with message if they want there entry into proper case if or not (vbyesno), if...
  11. MA04

    code problem

    Hi all, i have a command button that appends a record on a form when pressed. I have a condition before it which prompts a user if compulsory fields are not filled in, to fill them in or append is not carried out. The problem with my code is i cannot seem to display all the text and comboboxes...
  12. MA04

    code problem

    Hi all, I have code on the on exit of a textbox called Name_input, which takes the inputted name getting rid of any middle characters or strings to leave first string and last string which is copied to another textbox called SAL input (short for salutation). e.g. Mr M D Donald will result Mr...
  13. MA04

    Textbox that copies a name to another, minus middle initials or name

    Hi all, I have a textbox called SAL (short for Salutation) that copies the value of another textbox called Name, but displays it so that all middle initials or names are gone leaving title and lastname. e.g. Mr T Brown becomes Mr Brown Mrs J L Andrews Becomes Mrs Andrews Mr John Smith becomes...
  14. MA04

    open a form by a keypress or as icon on window

    Hi all, I don't know if i will be able to do this but i want to have a hotkey shortcut for my form. For example if F7 is pressed my form opens up. Is it possible to do this if database is closed before pressing the button? If this is not possible is it possible to have an icon on my window for...
  15. MA04

    Problem with IIf statement

    Hi all, I have an IIf statement which combines 2 fields together to create field Expr2. The statement seperates the fields by a comma "," it also gets rid of the comma if the first field length is less than 4, it also checks if values are null. What i want to do is add an extra field to this...
  16. MA04

    Problem with code

    Hi all, I downloaded this piece of code from the microsoft site which capitalises first letter of every name and places small caps on the rest of the name. But it seems to have one problem if the word "withe" is enterd it gets rid of the "e", i don't know why that is it seems to work in all...
  17. MA04

    Conditional query

    Hi all, I want a query that first takes into consideration Null values in field WCD (this is a code) but displays parts of the code due to each circumstance. The condition i want is: if is null then display WCD (show all records even if null), else if the first 2 characters of WCD = 95 then...
  18. MA04

    Restrict query result to 4 characters

    Hi all, I was wondering how i may restrict a result to 4 characters. The query reads in a postcode and displays a code like so: 38UCFZ i want to display the first 4 characters so displaying: 38UC. Any help appreciated, thanks in advance, M-.
  19. MA04

    Problem with IIf statement

    Hi all, I can't seem to get my IIF(IsNull(...)) statement correct here it is IIF(IsNull([Forms]![Ma_search2]![Expr1]), ([Forms]![Ma_search2]![Expr1])) AS Expr1, IIF(IsNull([Forms]![Ma_search2]![Expr2]), ([Forms]![Ma_search2]![Expr2])) AS Expr2...
  20. MA04

    Prompt a user to fill in Certain fields

    Hi all, I have a search input form, which has a command button which runs an append query in sql like so: Private Sub Append_Click() Dim strSQL As String DoCmd.SetWarnings False strSQL = "INSERT INTO ma_enq ( A1, A2, A3, A4, NAME ) " & _ "SELECT [Forms]![Ma_search2]![Expr1] AS Expr1...

Part and Inventory Search

Back
Top