-
WSmphutton
AskWoody Lounger -
WSmphutton
AskWoody Lounger -
WSmphutton
AskWoody LoungerMany thanks – its just what I wanted and it works.
-
WSmphutton
AskWoody LoungerMany thanks – it works.
In my query, in the criteria box I have entered the following [Which Post Code?] and the user enters in caps alphanumeric characters like ‘SE1 5JX’ – How can I format the box so that the user needs only enter the first three characters ? Thanks -
WSmphutton
AskWoody LoungerIt worked ! Many thanks
Maurice -
WSmphutton
AskWoody LoungerMany thanks for your time and effort in putting together the sample database to illustrate the code you suggested using. However, everything works fine on the data you have entered but when I enter a new record in the form (in your sample database) it does not update the UserRecNo field and if I run the query I get the message
-
WSmphutton
AskWoody LoungerYes
Regards
Maurice Hutton -
WSmphutton
AskWoody LoungerThank you for your tips. I have tried both with no luck !
The update query gives me the following error message “Data type mismatch in criteria expression” (REC_NO is number field and REC_ID is autonumber field)
I did as you suggested in the form with the following code:
Private Sub REC_NO_BeforeUpdate(Cancel As Integer)
If IsNull ( [REC_NO] ) Then
[Forms] ! [citywest]![REC_NO] = [Forms] ! [citywest] ! [REC_ID]
End If
End SubIt does not appear to do anything.
Any other suggestions would be appreciated.
Maurice Hutton -
WSmphutton
AskWoody LoungerThe data was imported from a dbf file supplied by a marketing bureau and contained the field REC_NO in which the contents were a unique number but not in any numeric sequence. I created a primary field (autonumber) called REC_ID and added several tables and linked them all via this primary filed. Everything works fine until the user adds a new record and then data in some of the forms do not display though they are in the main table.
Hope this all amkes sense.
Thanks for your prompt repsonse -
WSmphutton
AskWoody LoungerThe data was imported from a dbf file supplies by a marketing bureau and contained the field REC_NO in which the contents were a unique number but not in any numeric sequence. I created a primary field (autonumber) called REC_ID and added several tables and linked them all via this primary filed. Everything works fine until the user adds a new record and then data in some of the forms do not display though they are in the main table.
Hope this all amkes sense.
Thanks for your prompt repsonse
Maurice Hutton -
WSmphutton
AskWoody LoungerThank you for your patience. I think it does, I shall try it and let you know how I get on !
-
WSmphutton
AskWoody LoungerThank you for your suggestion. I am not sure I follow what you mean – could you elaborate please. Sorry to be such a pain, but I am only a novice !!!!
-
WSmphutton
AskWoody LoungerThanks for your response. No- as I have added other fields to the table.