Search results

  1. P

    Help needed for a non-programmer

    What you are trying to do is very basic and easy but needs to be setup to work in the way you intend. The Drop Down Box is called a Combo Box. Please explain what your end result is and the starting point you have eg End Result - create a new Customer record Starting Point - blank form, form...
  2. P

    Row Source sql changes by itself

    Finally got back to this issue. The subform is used on two different Main Forms and the combo box control Row Source sql refers to a control on the main form. This means the sql should be different depending on which main form is open. To access the sub form you need to click a command button...
  3. P

    Is it time for a change in our thinking.

    Some databases use a temporary value rather then a calculated balance. Stock take is an example. You "Freeze" the stock on hand value, then when the stock take count is known, any difference becomes a Transaction (Sale/Purchase). This means One field is used to hold the Stock on Hand value for...
  4. P

    s.o.s please! something odd happend

    When you concatenate sql in vba you need a space of at least one chr. This can be in the preceeding line or the following line. strStartSql1 has the space. strWhereSql1 does not have a space on either the beginning or the end of the line. strSortOrderSql1 does not have a space at the...
  5. P

    Form not working? Expression trouble...

    Try =IIf([Taxable?]=-1,(1.1*[After Discount]),[After Discount]) Refer my post earlier about removing ? from names. You need to clearly set your condition for Taxable? Then state what will happen if the condition is True and what will happen if the condition is False. Your earlier example...
  6. P

    s.o.s please! something odd happend

    You need a space in the start of your string. strWhereSql1 = " WHERE qry_city_state_zipcode_01.uszipcod_city LIKE '*" & Me.cbocity & "*'" Other lines will also require this space.
  7. P

    Form not working? Expression trouble...

    Yes/No is 0 or -1 see this thread http://www.access-programmers.co.uk/forums/showthread.php?t=95107
  8. P

    Form not working? Expression trouble...

    No, my post is wrong with brackets. iif(Condition, Value if True, Value if False) Where is your Condition ?
  9. P

    Row Source sql changes by itself

    Thanks RainLover. Got side tracked with despatching a rooster that was making too much noise.:eek: Back to access..
  10. P

    Form not working? Expression trouble...

    I just responded to what you posted which does not have the closing ")" Best to use the Hash Symbols when posting code eg=IIf([Taxable?],1.1,1)*[After Discount]) iif() is a function and must have equal brackets - which you have. Where the error is is dependant on your database. Why have you...
  11. P

    Form not working? Expression trouble...

    You need a closing )
  12. P

    Form not working? Expression trouble...

    The control source is not working. The expression may have a typo or other error that causes it not to return a value for the control.
  13. P

    Row Source sql changes by itself

    MS Access 2010 accdb. We have a main form, frmLoanIssueData, and a number of sub forms. One subform, FrmRefinanceSubForm, has a combo box control with Row Source as this sql SELECT TBLAPPLOAN.APLPK, TBLAPPLOAN.APLACCDET, TBLLOAN.LDPK, tblLoanIssueStatus.IssueDate...
  14. P

    Some observations..

    My first computer was a Commodor 64:D Went to night school to study Basic. We had a cassette tape drive to start with and then splashed out for a hdd. Became a User only for many years and then got re hooked with MS Databases in the 1980's. Joined this forum when our paid support people...
  15. P

    Question database, table and form query from a self taught newb

    Study the copy database. I have added a Module with the Public Function to get the next Job Number. It would be very easy to build some samrt things into the function to have Job Numbers read Jobnnnn or some other idea. I also added a Command Button that will appear when the check box is...
  16. P

    Question database, table and form query from a self taught newb

    You are using lookup on table fields. This is not recomended. Others mmay explain why or do a search. Better method is to use the form for lookup actions. Once you become familiar with using Forms for same you have better control on your data.
  17. P

    Question database, table and form query from a self taught newb

    Table Client List has field name Date. Also Sort and Status. While these two names are not on my list of reserved words, I wouldn't use them, just in case. ClientSort, ClientStatus would be my choice.
  18. P

    Question database, table and form query from a self taught newb

    Research Reserved Words. You have a field named Date - This is a reserved word and can not be used. JobDate, QuoteDate will work. Spaces in names serve no good purpose. QUOTE NUMBER - QuoteNumber. JOB NUMBER - JobNumber CLIENT - ClientID PRICE - SalePrice Check Hungarian naming convention...
  19. P

    Question database, table and form query from a self taught newb

    tblClientList tblFeeder tblFeederJob tblRegister qryFeeder frmFind - what ? frmFindQuote ?? frmRegister
  20. P

    Question database, table and form query from a self taught newb

    You should find better table, form and query names. Check out this subject as you wll save a lot of hardship by getting it right early in your database.
Back
Top Bottom