Thanks Ofer,
Below is the lookup SQL statement
Two Table : "Customer Details" and "IndMain"
Is there anything may cause key violation?
SELECT [ID] AS xyz_ID_xyz, [Customer Name] & ', ' & [Contact Number] & ', ' &
[Address] AS xyz_DispExpr_xyz, [Customer Name], [Contact Number], [Address]
FROM [Customer Details] ORDER BY [Customer Name], [Contact Number],
[Address];
SELECT IndMain.ID AS xyz_ID_xyz, [Customer Name] & ', ' & [Contact Number] &
', ' & [Address] AS xyz_DispExpr_xyz, IndMain.[Customer Name],
IndMain.[Contact Number], IndMain.Address FROM IndMain ORDER BY
IndMain.[Customer Name], IndMain.[Contact Number], IndMain.Address;
Is it possible to append lookup fields?
Any solutions to the above?
Thanks.
Kennykee
Ofer said:
You can append dlookup e.g
INSERT INTO MyTable ( MyField)
VALUES DLookUp("FieldName","TableName","WhereCrit")
If that what you looking for, about the key violation you need to check
Three things
1. MyBe the key you trying to enter allready exist
2. One of the field in the table doesnt allow null values, and you not
entering a value into it.
3. Are you inserting a value to the key field.