English 中文(简体)
2007年准入:在单一约束文本箱中进入多个条目
原标题:access 2007: entering multiple entries in a single bound text box

I have a single form, linked to a single table. The form has three bound text boxes, each allow for data entry to the table. In the text boxes you enter a date, a dollar amount, and a client to bill for the postage. My problem is what if I have multiple clients, billed to a single expense.

我想改变客户的入门盒,以便一对多个客户进行分类,并按 com子进行分类,而准入将知道会收取所输入的金额,并将输入客户的数目分开。

Is this possible? Any help would be appreciated! I taught myself access for the most part and am not very savvy.

最佳回答

请允许我首先指出,这并不是一个好的想法,但是,如果要由您个人使用,你就可以利用传统做法来分割描述和计算案文,根据约束性领域是如何建立的,你可能会遇到一些问题。

我建议的是一个清单箱、两个文本箱和一个次表。 采用变形名单箱,你可以选择一个或多个客户。 少法则允许你通过名单上公布,并将记录列入每个客户的表格,日期和数额按清单分列。 该表将显示用于检查的插入记录。

例如:

For Each itm In Me.ListBox.ItemsSelected
  sSQL = "INSERT INTO MyTable (ClientID, Amount, InvDate ) " _
       & "VALUES ( " & Me.ListBox.Column(0, itm) & "," _
       & Me.txtAmount / Me.ListBox.ItemsSelected.Count & ",#" _
       & Me.txtDate & "#)"
  CurrentDB.Execute sSQL, dbFailOnError
Next

Me.SubformControlName.Form.Requery
问题回答

暂无回答




相关问题
connect Access via c#

i need to open a connection to a remote access db. in the local environment to the remote acess db is working great . when i run this application from production server (other server) it s fail ...

total two or more values under one ID in SQL

![alt text][1] [1]: http://C:Documents and SettingsAdministratorMy DocumentsMy PicturesAshampoo Magical Snap 2Magical Snap - 2009.11.16 23.07 - 003.jpg In referring to the picture there are ...

How to show File Picker dialog in Access 2007?

I want to show a dialog where the user can pick a file, click OK, and then the path to the file will be saved in the database. I have just one problem, I can t figure out how tho show the dialog ...

MS Access: list macro from VBA

I have to deal with a few macros (not VBA) in an inherited Access application. In order to document them, I would like to print or list the actions in those macros, but I am very dissatisfied by ...

热门标签